Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.008242/0.008242, allocations: 97.47 kB / 21.92 MB, free: 5.203 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.001919/0.001919, allocations: 206.7 kB / 25.22 MB, free: 3.137 MB / 14.72 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.413/1.413, allocations: 207.7 MB / 236.1 MB, free: 9.801 MB / 190.1 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 51.92 kB / 348.4 MB, free: 9.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2772, allocations: 49.16 MB / 397.6 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002697/0.2798, allocations: 1.629 MB / 399.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006224/0.2805, allocations: 265.6 kB / 399.5 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.538e-05/0.2806, allocations: 8.094 kB / 399.5 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.2807, allocations: 21.62 kB / 399.5 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.915e-05/0.2807, allocations: 18.75 kB / 399.5 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.2812, allocations: 132.1 kB / 399.6 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003098/0.2815, allocations: 270.6 kB / 399.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002854/0.2818, allocations: 158.5 kB / 400.1 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.717e-05/0.2819, allocations: 88.77 kB / 400.1 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.282, allocations: 89.56 kB / 400.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.282, allocations: 22.5 kB / 400.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.125e-05/0.2821, allocations: 30.12 kB / 400.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.057e-05/0.2822, allocations: 54.81 kB / 400.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.007e-05/0.2823, allocations: 87.06 kB / 400.4 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.2826, allocations: 258.7 kB / 400.7 MB, free: 7.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2826, allocations: 1.906 kB / 400.7 MB, free: 7.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2826, allocations: 4 kB / 400.7 MB, free: 7.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2826, allocations: 0 / 400.7 MB, free: 7.484 MB / 318.1 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.0005486/0.2831, allocations: 421.8 kB / 401.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2832, allocations: 14.89 kB / 401.1 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.2832, allocations: 24.7 kB / 401.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.2835, allocations: 172 kB / 401.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.2835, allocations: 29.02 kB / 401.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/0.2836, allocations: 31.02 kB / 401.4 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004262/0.284, allocations: 276.5 kB / 401.6 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.284, allocations: 4.844 kB / 401.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.284, allocations: 10.72 kB / 401.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2841, allocations: 6.672 kB / 401.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002832/0.2843, allocations: 164.5 kB / 401.8 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009231/0.2853, allocations: 0.8356 MB / 402.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.2855, allocations: 137 kB / 402.8 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.2856, allocations: 70.98 kB / 402.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.2856, allocations: 2.188 kB / 402.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/0.2858, allocations: 124 kB / 403 MB, free: 5.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.2858, allocations: 4 kB / 403 MB, free: 5.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000396/0.2862, allocations: 214.8 kB / 403.2 MB, free: 5.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.2862, allocations: 59.55 kB / 403.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.464e-05/0.2863, allocations: 165.6 kB / 403.4 MB, free: 5.531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.2864, allocations: 34.02 kB / 403.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.361e-05/0.2864, allocations: 145.5 kB / 403.6 MB, free: 5.367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.787e-05/0.2865, allocations: 56.97 kB / 403.6 MB, free: 5.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.203e-05/0.2865, allocations: 78.31 kB / 403.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.2866, allocations: 328.9 kB / 404 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2867, allocations: 62.81 kB / 404.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.2868, allocations: 145.1 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.287, allocations: 182.5 kB / 404.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2871, allocations: 1.984 kB / 404.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003381/0.2874, allocations: 257.1 kB / 404.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.2874, allocations: 6.125 kB / 404.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.2874, allocations: 1.719 kB / 404.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.2874, allocations: 5.75 kB / 404.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.2876, allocations: 37.66 kB / 404.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.2876, allocations: 5.859 kB / 404.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.641e-05/0.2877, allocations: 29.47 kB / 404.8 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.2877, allocations: 18.47 kB / 404.8 MB, free: 4.527 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001084/0.2878, allocations: 157.6 kB / 404.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/0.2878, allocations: 13.36 kB / 404.9 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.2881, allocations: 197.8 kB / 405.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2881, allocations: 2.812 kB / 405.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.2881, allocations: 1.094 kB / 405.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2882, allocations: 0 / 405.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005662/0.2887, allocations: 0.5041 MB / 405.6 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2887, allocations: 0 / 405.6 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.126e-05/0.2888, allocations: 26.78 kB / 405.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.2888, allocations: 1.469 kB / 405.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.2888, allocations: 1.938 kB / 405.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.2888, allocations: 5.062 kB / 405.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.2888, allocations: 5.703 kB / 405.7 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.2891, allocations: 279.9 kB / 406 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.801e-05/0.2891, allocations: 20.72 kB / 406 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.2891, allocations: 6.281 kB / 406 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.442e-05/0.2892, allocations: 12.42 kB / 406 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.435e-05/0.2893, allocations: 22.27 kB / 406 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.2893, allocations: 13.09 kB / 406 MB, free: 3.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.588e-05/0.2893, allocations: 97.03 kB / 406.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2893, allocations: 0 / 406.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.2897, allocations: 51.83 kB / 406.2 MB, free: 3.566 MB / 318.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: 19 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001113/0.2898, allocations: 109 kB / 406.3 MB, free: 3.469 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003044/0.2901, allocations: 170.9 kB / 406.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2901, allocations: 0.5625 kB / 406.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.2902, allocations: 70.05 kB / 406.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.2905, allocations: 23.78 kB / 406.5 MB, free: 3.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005426/0.291, allocations: 369.8 kB / 406.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.2911, allocations: 124.6 kB / 407 MB, free: 3.047 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.798e-05/0.2912, allocations: 30.77 kB / 407.1 MB, free: 3.031 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2912, allocations: 0 / 407.1 MB, free: 3.031 MB / 318.1 MB Notification: Performance of Templates: time 0.004838/0.296, allocations: 2.463 MB / 409.5 MB, free: 2.438 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.236786251887679]