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.001278/0.001278, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001347/0.001347, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.368/1.368, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 51.91 kB / 370.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2723, allocations: 52.18 MB / 422.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.0031/0.2754, allocations: 1.69 MB / 424.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007102/0.2761, allocations: 303.1 kB / 424.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.636e-05/0.2762, allocations: 0 / 424.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.2764, allocations: 27.67 kB / 424.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.348e-05/0.2764, allocations: 19.8 kB / 424.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.2768, allocations: 131.8 kB / 424.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.2772, allocations: 271.6 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.2775, allocations: 159.5 kB / 425.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.2776, allocations: 91.7 kB / 425.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.2777, allocations: 103.5 kB / 425.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.2778, allocations: 24 kB / 425.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.607e-05/0.2779, allocations: 32 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.032e-05/0.2779, allocations: 63.81 kB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.278, allocations: 95.53 kB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.2784, allocations: 259.3 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2784, allocations: 8 kB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2784, allocations: 0 / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2784, allocations: 0 / 425.8 MB, free: 11.38 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006997/0.2791, allocations: 433.1 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2791, allocations: 8.031 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.696e-05/0.2792, allocations: 62.67 kB / 426.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.876e-05/0.2793, allocations: 24.8 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.2796, allocations: 178.2 kB / 426.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.012e-05/0.2796, allocations: 24.88 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.2797, allocations: 28.38 kB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.2801, allocations: 277.7 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.2802, allocations: 3.938 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.2802, allocations: 12 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2802, allocations: 4 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.2805, allocations: 165.6 kB / 427 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.2817, allocations: 0.9327 MB / 428 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.282, allocations: 163 kB / 428.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.2821, allocations: 69.69 kB / 428.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.2821, allocations: 4 kB / 428.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.2824, allocations: 141 kB / 428.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.2824, allocations: 0 / 428.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004227/0.2828, allocations: 223 kB / 428.6 MB, free: 8.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.2828, allocations: 89.09 kB / 428.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.283, allocations: 157 kB / 428.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.283, allocations: 37.7 kB / 428.8 MB, free: 8.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.2831, allocations: 144.8 kB / 429 MB, free: 8.012 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.2832, allocations: 67.66 kB / 429 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.955e-05/0.2833, allocations: 73.69 kB / 429.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2834, allocations: 330.8 kB / 429.4 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.2836, allocations: 63.95 kB / 429.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2837, allocations: 144.5 kB / 429.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.284, allocations: 196.8 kB / 429.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.284, allocations: 0 / 429.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003829/0.2844, allocations: 253.3 kB / 430.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.2844, allocations: 8 kB / 430.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2844, allocations: 288 / 430.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.2844, allocations: 8 kB / 430.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.2846, allocations: 39.92 kB / 430.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2846, allocations: 7.938 kB / 430.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.379e-05/0.2847, allocations: 27.78 kB / 430.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.2847, allocations: 15.98 kB / 430.2 MB, free: 6.719 MB / 334.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: 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.0001518/0.2849, allocations: 165.6 kB / 430.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.2849, allocations: 15.91 kB / 430.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003546/0.2852, allocations: 198.4 kB / 430.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.2852, allocations: 4 kB / 430.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2853, allocations: 0 / 430.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2853, allocations: 0 / 430.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000732/0.286, allocations: 0.5665 MB / 431.1 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.286, allocations: 0 / 431.1 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.168e-05/0.2861, allocations: 19.98 kB / 431.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.2861, allocations: 7.938 kB / 431.2 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.2861, allocations: 3.938 kB / 431.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.2861, allocations: 8 kB / 431.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2861, allocations: 0 / 431.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003325/0.2864, allocations: 292.5 kB / 431.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.2864, allocations: 15.84 kB / 431.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.2865, allocations: 7.938 kB / 431.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.175e-05/0.2866, allocations: 11.98 kB / 431.5 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.2866, allocations: 23.97 kB / 431.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.2866, allocations: 11.98 kB / 431.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.157e-05/0.2867, allocations: 95.27 kB / 431.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2867, allocations: 0 / 431.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.287, allocations: 51.89 kB / 431.7 MB, free: 5.145 MB / 334.1 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.0006734/0.2877, allocations: 0.8261 MB / 432.5 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000318/0.288, allocations: 175.7 kB / 432.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.288, allocations: 0 / 432.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.2881, allocations: 79.84 kB / 432.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.2884, allocations: 31.42 kB / 432.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.2907, allocations: 2.091 MB / 434.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.2911, allocations: 0.7401 MB / 435.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.369e-05/0.2912, allocations: 25.94 kB / 435.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.2913, allocations: 63.41 kB / 435.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2913, allocations: 4 kB / 435.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02956/0.3209, allocations: 4.018 MB / 439.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.95, allocations: 15.78 kB / 439.7 MB, free: 13.02 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/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: 13.294491089181975]