Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000832/0.000832, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003867/0.003867, allocations: 149.6 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8364/0.8364, allocations: 173.4 MB / 201.2 MB, free: 9.074 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 319.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.273e-05/2.396e-05, allocations: 10.22 kB / 319.7 MB, free: 5.73 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001733/0.001757, allocations: 1.623 MB / 321.3 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004866/0.002243, allocations: 291.1 kB / 321.6 MB, free: 3.805 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.01e-05/0.002324, allocations: 7.938 kB / 321.6 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.002435, allocations: 31.73 kB / 321.6 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.337e-05/0.002469, allocations: 27.66 kB / 321.6 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.002807, allocations: 123.8 kB / 321.8 MB, free: 3.617 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.003034, allocations: 283.4 kB / 322 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.003238, allocations: 154.6 kB / 322.2 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.00334, allocations: 139.7 kB / 322.3 MB, free: 3.051 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.934e-05/0.003429, allocations: 75.77 kB / 322.4 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.003458, allocations: 24 kB / 322.4 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.446e-05/0.003523, allocations: 35.94 kB / 322.5 MB, free: 2.918 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.912e-05/0.003572, allocations: 59.8 kB / 322.5 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.569e-05/0.003627, allocations: 67.83 kB / 322.6 MB, free: 2.793 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.003857, allocations: 275 kB / 322.9 MB, free: 2.523 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.003859, allocations: 0 / 322.9 MB, free: 2.523 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.00386, allocations: 0 / 322.9 MB, free: 2.523 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.003864, allocations: 0 / 322.9 MB, free: 2.523 MB / 282.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.0004653/0.004329, allocations: 421.2 kB / 323.3 MB, free: 2.078 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.00436, allocations: 12.02 kB / 323.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.004405, allocations: 36.8 kB / 323.3 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.004592, allocations: 165.5 kB / 323.5 MB, free: 1.844 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.00462, allocations: 24.81 kB / 323.5 MB, free: 1.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.55e-05/0.004645, allocations: 28.38 kB / 323.5 MB, free: 1.793 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.004934, allocations: 269.9 kB / 323.8 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.004945, allocations: 192 / 323.8 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.004962, allocations: 12.38 kB / 323.8 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.004969, allocations: 8.375 kB / 323.8 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.005158, allocations: 169.8 kB / 324 MB, free: 1.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006866/0.005845, allocations: 0.8438 MB / 324.8 MB, free: 440 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.006039, allocations: 164.8 kB / 325 MB, free: 260 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.127e-05/0.00611, allocations: 69.62 kB / 325 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.006128, allocations: 4 kB / 325 MB, free: 180 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001386/0.006267, allocations: 141 kB / 325.2 MB, free: 20 kB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.012e-06/0.006268, allocations: 0 / 325.2 MB, free: 20 kB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003076/0.006575, allocations: 231.6 kB / 325.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.006615, allocations: 81.11 kB / 325.5 MB, free: 15.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.64e-05/0.006692, allocations: 157.8 kB / 325.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.006711, allocations: 33.7 kB / 325.7 MB, free: 15.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.88e-05/0.006779, allocations: 152.7 kB / 325.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.006812, allocations: 59.53 kB / 325.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.897e-05/0.006881, allocations: 85.62 kB / 326 MB, free: 15.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.77e-05/0.006959, allocations: 326.8 kB / 326.3 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.607e-05/0.007035, allocations: 67.91 kB / 326.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.007138, allocations: 140.1 kB / 326.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.007299, allocations: 192.5 kB / 326.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.007302, allocations: 0 / 326.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002403/0.007542, allocations: 265.5 kB / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.007554, allocations: 8 kB / 326.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.007559, allocations: 3.938 kB / 327 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.00757, allocations: 4 kB / 327 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.922e-05/0.00766, allocations: 39.86 kB / 327 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.007668, allocations: 7.984 kB / 327 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.512e-05/0.007724, allocations: 23.84 kB / 327 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.007743, allocations: 12 kB / 327 MB, free: 14.04 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.000107/0.00785, allocations: 161.8 kB / 327.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.007865, allocations: 19.92 kB / 327.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002136/0.008078, allocations: 210.9 kB / 327.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.00808, allocations: 4 kB / 327.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.008084, allocations: 3.938 kB / 327.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.008089, allocations: 7.984 kB / 327.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.008498, allocations: 0.4971 MB / 327.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.0085, allocations: 0 / 327.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.588e-05/0.008536, allocations: 15.98 kB / 327.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.008539, allocations: 4 kB / 328 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.008548, allocations: 4 kB / 328 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.008549, allocations: 7.938 kB / 328 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.008552, allocations: 4 kB / 328 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.008743, allocations: 280.2 kB / 328.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.382e-05/0.008757, allocations: 19.84 kB / 328.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.008773, allocations: 4 kB / 328.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.893e-05/0.008822, allocations: 11.98 kB / 328.3 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.008877, allocations: 19.97 kB / 328.3 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.008886, allocations: 7.984 kB / 328.3 MB, free: 12.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.799e-05/0.008924, allocations: 103.2 kB / 328.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008924, allocations: 0 / 328.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001916/0.009116, allocations: 55.83 kB / 328.5 MB, free: 12.54 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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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 0.0001022/0.009218, allocations: 118.9 kB / 328.6 MB, free: 12.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002011/0.009419, allocations: 175.7 kB / 328.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.009421, allocations: 0 / 328.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.779e-05/0.009499, allocations: 76.5 kB / 328.8 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.00968, allocations: 20.62 kB / 328.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000401/0.01008, allocations: 373.8 kB / 329.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.158e-05/0.01015, allocations: 129.2 kB / 329.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.237e-05/0.0102, allocations: 24.48 kB / 329.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.0102, allocations: 4 kB / 329.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of Templates: time 0.002683/0.01288, allocations: 2.497 MB / 331.9 MB, free: 9.082 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.126766510307789]