Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0008571/0.0008571, allocations: 83.69 kB / 21.44 MB, free: 3.117 MB / 18.57 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.004728/0.004728, allocations: 156.5 kB / 24.7 MB, free: 9.434 MB / 18.57 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 0.8947/0.8947, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.557e-05/2.716e-05, allocations: 4.953 kB / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002103/0.00213, allocations: 1.709 MB / 327.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005503/0.00268, allocations: 295.1 kB / 327.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.088e-05/0.002761, allocations: 4 kB / 327.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.002874, allocations: 23.69 kB / 327.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.504e-05/0.002919, allocations: 19.78 kB / 327.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.003256, allocations: 123.7 kB / 328 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.003496, allocations: 279.4 kB / 328.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/0.003721, allocations: 150 kB / 328.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.003836, allocations: 143.7 kB / 328.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.904e-05/0.003935, allocations: 67.78 kB / 328.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.003963, allocations: 24 kB / 328.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.808e-05/0.004021, allocations: 27.98 kB / 328.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.193e-05/0.004073, allocations: 55.81 kB / 328.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.286e-05/0.004136, allocations: 71.81 kB / 328.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.004378, allocations: 263.1 kB / 329 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.004381, allocations: 0 / 329 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.004382, allocations: 0 / 329 MB, free: 12.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.004387, allocations: 0 / 329 MB, free: 12.23 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004839/0.004871, allocations: 432.2 kB / 329.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.004909, allocations: 12.03 kB / 329.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.00508, allocations: 32.78 kB / 329.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.005307, allocations: 173.4 kB / 329.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.005336, allocations: 20.88 kB / 329.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.005362, allocations: 28.38 kB / 329.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.005676, allocations: 269.8 kB / 330 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.005687, allocations: 8.125 kB / 330 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.005704, allocations: 12.38 kB / 330 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.005714, allocations: 12.36 kB / 330 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.00591, allocations: 169.8 kB / 330.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.006929, allocations: 0.8249 MB / 331 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.007145, allocations: 157.3 kB / 331.1 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.31e-05/0.007218, allocations: 69.78 kB / 331.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.007234, allocations: 0 / 331.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00015/0.007384, allocations: 149.8 kB / 331.4 MB, free: 9.734 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.007385, allocations: 0 / 331.4 MB, free: 9.734 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003073/0.007693, allocations: 227.8 kB / 331.6 MB, free: 9.508 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.007739, allocations: 89.09 kB / 331.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/0.007823, allocations: 149.7 kB / 331.8 MB, free: 9.246 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.007846, allocations: 45.69 kB / 331.9 MB, free: 9.195 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.688e-05/0.007913, allocations: 136.7 kB / 332 MB, free: 9.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.007945, allocations: 59.58 kB / 332 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.03e-05/0.008016, allocations: 85.62 kB / 332.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.915e-05/0.008095, allocations: 322.8 kB / 332.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.799e-05/0.008173, allocations: 63.97 kB / 332.5 MB, free: 8.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.008279, allocations: 140.5 kB / 332.6 MB, free: 8.352 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.008447, allocations: 193 kB / 332.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.008453, allocations: 0 / 332.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002348/0.008688, allocations: 257.3 kB / 333.1 MB, free: 7.875 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.008703, allocations: 4 kB / 333.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.008709, allocations: 4 kB / 333.1 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.008724, allocations: 4 kB / 333.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.969e-05/0.008814, allocations: 35.92 kB / 333.1 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.008823, allocations: 11.92 kB / 333.1 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.993e-05/0.008883, allocations: 27.78 kB / 333.2 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.008896, allocations: 12 kB / 333.2 MB, free: 7.777 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001067/0.009003, allocations: 162 kB / 333.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.009019, allocations: 15.89 kB / 333.4 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.187e-05/0.009051, allocations: 16.94 kB / 333.4 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.009055, allocations: 4 kB / 333.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.009059, allocations: 0 / 333.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.009064, allocations: 3.984 kB / 333.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.009493, allocations: 500 kB / 333.9 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.009495, allocations: 3.938 kB / 333.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.808e-05/0.009533, allocations: 19.94 kB / 333.9 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.009538, allocations: 11.98 kB / 333.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.009547, allocations: 0 / 333.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.009549, allocations: 3.938 kB / 333.9 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.009551, allocations: 4 kB / 333.9 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000186/0.009737, allocations: 279.8 kB / 334.2 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.115e-05/0.009748, allocations: 19.84 kB / 334.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.009766, allocations: 8 kB / 334.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.651e-05/0.009812, allocations: 8 kB / 334.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.009868, allocations: 19.95 kB / 334.2 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-06/0.009876, allocations: 8 kB / 334.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.527e-05/0.009911, allocations: 96.52 kB / 334.3 MB, free: 6.547 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009911, allocations: 7.938 kB / 334.3 MB, free: 6.539 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001878/0.0101, allocations: 51.89 kB / 334.4 MB, free: 6.488 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 9.573e-05/0.01019, allocations: 107.1 kB / 334.5 MB, free: 6.375 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.01042, allocations: 171.6 kB / 334.7 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.01042, allocations: 0 / 334.7 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.648e-05/0.0105, allocations: 66.7 kB / 334.7 MB, free: 6.145 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.01071, allocations: 24.05 kB / 334.8 MB, free: 6.121 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004633/0.01117, allocations: 365.3 kB / 335.1 MB, free: 5.727 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.097e-05/0.01125, allocations: 117.6 kB / 335.2 MB, free: 5.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.0113, allocations: 20.5 kB / 335.3 MB, free: 5.57 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.0113, allocations: 4 kB / 335.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of Templates: time 0.002863/0.01416, allocations: 2.293 MB / 337.5 MB, free: 3.273 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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: 4.061287461780012]