Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.002092/0.002092, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.002528/0.002528, allocations: 165.5 kB / 25.02 MB, free: 8.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 158.6 MB / 186.8 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 250.3 MB, free: 3.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.948e-05/3.107e-05, allocations: 2.312 kB / 250.3 MB, free: 3.977 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002962/0.002994, allocations: 1.469 MB / 251.8 MB, free: 2.496 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007552/0.003749, allocations: 243.3 kB / 252 MB, free: 2.258 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.003851, allocations: 3.938 kB / 252 MB, free: 2.254 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.00401, allocations: 27.73 kB / 252.1 MB, free: 2.227 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.965e-05/0.00407, allocations: 19.8 kB / 252.1 MB, free: 2.207 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.004541, allocations: 119.8 kB / 252.2 MB, free: 2.09 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.004914, allocations: 271.4 kB / 252.5 MB, free: 1.824 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.005193, allocations: 142.7 kB / 252.6 MB, free: 1.684 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.005385, allocations: 135.8 kB / 252.7 MB, free: 1.551 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.005522, allocations: 67.77 kB / 252.8 MB, free: 1.484 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.487e-05/0.005577, allocations: 20 kB / 252.8 MB, free: 1.465 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.005681, allocations: 32 kB / 252.9 MB, free: 1.434 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.643e-05/0.005758, allocations: 63.8 kB / 252.9 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.999e-05/0.005848, allocations: 59.83 kB / 253 MB, free: 1.312 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003562/0.006204, allocations: 255.2 kB / 253.2 MB, free: 1.062 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.006206, allocations: 0 / 253.2 MB, free: 1.062 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.006208, allocations: 0 / 253.2 MB, free: 1.062 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.006213, allocations: 4 kB / 253.2 MB, free: 1.059 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007034/0.006916, allocations: 405.1 kB / 253.6 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.006954, allocations: 15.98 kB / 253.6 MB, free: 0.6133 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.007062, allocations: 40.78 kB / 253.7 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.007404, allocations: 173.6 kB / 253.8 MB, free: 388 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.007443, allocations: 20.88 kB / 253.9 MB, free: 368 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.696e-05/0.00749, allocations: 28.36 kB / 253.9 MB, free: 340 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004766/0.007967, allocations: 239.3 kB / 254.1 MB, free: 84 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.007977, allocations: 192 / 254.1 MB, free: 84 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.008008, allocations: 12.36 kB / 254.1 MB, free: 72 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.008017, allocations: 8.375 kB / 254.2 MB, free: 64 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.008374, allocations: 157.9 kB / 254.3 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.009682, allocations: 0.5933 MB / 254.9 MB, free: 15.28 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.01005, allocations: 154.7 kB / 255 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.0102, allocations: 72.83 kB / 255.1 MB, free: 15.05 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.01022, allocations: 4 kB / 255.1 MB, free: 15.04 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/0.01045, allocations: 119.2 kB / 255.2 MB, free: 14.91 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.01045, allocations: 0 / 255.2 MB, free: 14.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005189/0.01097, allocations: 225.9 kB / 255.5 MB, free: 14.69 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.01102, allocations: 59.39 kB / 255.5 MB, free: 14.62 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.01119, allocations: 152.3 kB / 255.7 MB, free: 14.46 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.01123, allocations: 33.7 kB / 255.7 MB, free: 14.42 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.01135, allocations: 136.9 kB / 255.8 MB, free: 14.29 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.464e-05/0.01141, allocations: 59.48 kB / 255.9 MB, free: 14.23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.01153, allocations: 78.02 kB / 256 MB, free: 14.14 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.01171, allocations: 326.8 kB / 256.3 MB, free: 13.81 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.01185, allocations: 68.62 kB / 256.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.01205, allocations: 128.8 kB / 256.5 MB, free: 13.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.01234, allocations: 166.8 kB / 256.6 MB, free: 13.41 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.01235, allocations: 8 kB / 256.7 MB, free: 13.4 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004385/0.01279, allocations: 253.3 kB / 256.9 MB, free: 13.15 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.0128, allocations: 4 kB / 256.9 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01281, allocations: 4 kB / 256.9 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.01283, allocations: 7.938 kB / 256.9 MB, free: 13.13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.01299, allocations: 35.86 kB / 256.9 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.013, allocations: 4 kB / 257 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.01316, allocations: 35.98 kB / 257 MB, free: 13.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.01319, allocations: 12 kB / 257 MB, free: 13.05 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001625/0.01335, allocations: 149.8 kB / 257.1 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/0.0134, allocations: 23.91 kB / 257.2 MB, free: 12.87 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003838/0.01378, allocations: 198.4 kB / 257.4 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.01379, allocations: 11.88 kB / 257.4 MB, free: 12.65 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.01379, allocations: 0 / 257.4 MB, free: 12.65 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.0138, allocations: 3.984 kB / 257.4 MB, free: 12.65 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007568/0.01456, allocations: 485.8 kB / 257.9 MB, free: 12.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.01456, allocations: 4 kB / 257.9 MB, free: 12.13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.329e-05/0.01464, allocations: 19.92 kB / 257.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01464, allocations: 0 / 257.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.01466, allocations: 8 kB / 257.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01466, allocations: 0 / 257.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01466, allocations: 0 / 257.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.01507, allocations: 291.2 kB / 258.2 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.382e-05/0.01509, allocations: 19.84 kB / 258.2 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.773e-05/0.01512, allocations: 4 kB / 258.2 MB, free: 11.78 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.807e-05/0.01522, allocations: 11.98 kB / 258.2 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.659e-05/0.0153, allocations: 23.97 kB / 258.2 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.01532, allocations: 11.98 kB / 258.2 MB, free: 11.73 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.836e-05/0.0154, allocations: 91.27 kB / 258.3 MB, free: 11.64 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0154, allocations: 0 / 258.3 MB, free: 11.64 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003235/0.01573, allocations: 51.89 kB / 258.4 MB, free: 11.59 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002017/0.01593, allocations: 111.2 kB / 258.5 MB, free: 11.48 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003686/0.0163, allocations: 164.4 kB / 258.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.0163, allocations: 448 / 258.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.01646, allocations: 87.84 kB / 258.7 MB, free: 11.23 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.0168, allocations: 27.92 kB / 258.8 MB, free: 11.2 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007239/0.01752, allocations: 333.6 kB / 259.1 MB, free: 10.85 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.01767, allocations: 120.6 kB / 259.2 MB, free: 10.71 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.051e-05/0.01775, allocations: 21.95 kB / 259.2 MB, free: 10.69 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.423e-05/0.01783, allocations: 24.48 kB / 259.3 MB, free: 10.67 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01783, allocations: 4 kB / 259.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of Templates: time 0.006036/0.02387, allocations: 1.958 MB / 261.2 MB, free: 8.723 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.463195518008433]