Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 211.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.388/1.388, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 47.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2642, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002242/0.2665, allocations: 0.8542 MB / 431.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003727/0.2668, allocations: 115.6 kB / 432 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-05/0.2669, allocations: 4 kB / 432.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.932e-05/0.267, allocations: 11.86 kB / 432.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.2671, allocations: 7.922 kB / 432.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.2674, allocations: 39.91 kB / 432.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.2675, allocations: 31.92 kB / 432.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2676, allocations: 23.97 kB / 432.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.705e-05/0.2676, allocations: 15.92 kB / 432.2 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.697e-05/0.2677, allocations: 27.86 kB / 432.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.2677, allocations: 4 kB / 432.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.2677, allocations: 4 kB / 432.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.375e-05/0.2678, allocations: 19.92 kB / 432.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.375e-05/0.2678, allocations: 23.81 kB / 432.3 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.268, allocations: 65.3 kB / 432.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.268, allocations: 3.938 kB / 432.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.268, allocations: 0 / 432.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.268, allocations: 0 / 432.3 MB, free: 5.414 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004442/0.2684, allocations: 302 kB / 432.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.2684, allocations: 12.03 kB / 432.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.2685, allocations: 38.75 kB / 432.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.2685, allocations: 12.84 kB / 432.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.2687, allocations: 138.3 kB / 432.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.2687, allocations: 8.375 kB / 432.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.2687, allocations: 384 / 432.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.269, allocations: 151.7 kB / 433 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.269, allocations: 3.938 kB / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.2691, allocations: 0 / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2691, allocations: 4 kB / 433 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.297e-05/0.2691, allocations: 23.98 kB / 433 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000145/0.2693, allocations: 136.8 kB / 433.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.2694, allocations: 70.64 kB / 433.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.106e-05/0.2695, allocations: 44.88 kB / 433.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.2695, allocations: 0 / 433.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.2695, allocations: 30.56 kB / 433.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.2695, allocations: 4 kB / 433.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002209/0.2697, allocations: 113.6 kB / 433.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.2698, allocations: 55.41 kB / 433.4 MB, free: 4.129 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.2699, allocations: 144.4 kB / 433.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.2699, allocations: 25.7 kB / 433.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.06e-05/0.27, allocations: 88.12 kB / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.27, allocations: 8 kB / 433.7 MB, free: 3.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.27, allocations: 25.7 kB / 433.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2702, allocations: 318.8 kB / 434 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.435e-05/0.2702, allocations: 11.98 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.033e-05/0.2703, allocations: 63.12 kB / 434.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.473e-05/0.2703, allocations: 74.8 kB / 434.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2703, allocations: 0 / 434.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001333/0.2705, allocations: 93.48 kB / 434.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2705, allocations: 11.94 kB / 434.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2705, allocations: 192 / 434.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.2705, allocations: 7.984 kB / 434.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.085e-05/0.2706, allocations: 23.88 kB / 434.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.2706, allocations: 7.984 kB / 434.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.404e-05/0.2706, allocations: 7.938 kB / 434.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.2707, allocations: 4 kB / 434.3 MB, free: 3.145 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.2708, allocations: 130 kB / 434.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.2709, allocations: 85.47 kB / 434.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.163e-05/0.2709, allocations: 20.7 kB / 434.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2709, allocations: 0 / 434.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2709, allocations: 4 kB / 434.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2709, allocations: 3.984 kB / 434.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.271, allocations: 128.8 kB / 434.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.271, allocations: 0 / 434.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.756e-05/0.2711, allocations: 15.98 kB / 434.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2711, allocations: 3.938 kB / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.2711, allocations: 8 kB / 434.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2711, allocations: 4 kB / 434.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2711, allocations: 0 / 434.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.2712, allocations: 109 kB / 434.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.961e-05/0.2713, allocations: 31.8 kB / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.2713, allocations: 0 / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.111e-05/0.2713, allocations: 0 / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-06/0.2713, allocations: 4 kB / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.2713, allocations: 0 / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.994e-05/0.2714, allocations: 111.2 kB / 435 MB, free: 2.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2714, allocations: 0 / 435 MB, free: 2.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001975/0.2716, allocations: 12 kB / 435 MB, free: 2.406 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000496/0.2721, allocations: 0.6749 MB / 435.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.2722, allocations: 43.86 kB / 435.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2722, allocations: 4 kB / 435.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.2722, allocations: 0 / 435.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.2725, allocations: 49.58 kB / 435.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.2737, allocations: 1.379 MB / 437.2 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.016e-05/0.2738, allocations: 83.33 kB / 437.2 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.512e-05/0.2738, allocations: 8.703 kB / 437.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.2739, allocations: 15.44 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2739, allocations: 0 / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.3012, allocations: 2.405 MB / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.58, allocations: 5.797 kB / 439.7 MB, free: 13.71 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.884846002008999]