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.001152/0.001152, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001218/0.002371, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007225/0.0007225, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009531/0.001676, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 0.8111/0.8111, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1631/0.9742, allocations: 49.49 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.376e-05, allocations: 5.406 kB / 222 MB, free: 80 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003148/0.003172, allocations: 1.731 MB / 223.7 MB, free: 14.32 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004122/0.003584, allocations: 271 kB / 224 MB, free: 14.06 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.612e-05/0.00366, allocations: 7.938 kB / 224 MB, free: 14.05 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 7.637e-05/0.003736, allocations: 27.67 kB / 224 MB, free: 14.02 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 3.981e-05/0.003776, allocations: 15.8 kB / 224 MB, free: 14.01 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.004035, allocations: 127.7 kB / 224.1 MB, free: 13.88 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.004264, allocations: 275.5 kB / 224.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.004467, allocations: 166.2 kB / 224.6 MB, free: 13.45 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.004569, allocations: 135.8 kB / 224.7 MB, free: 13.32 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.004689, allocations: 75.75 kB / 224.8 MB, free: 13.24 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.00472, allocations: 24 kB / 224.8 MB, free: 13.22 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.611e-05/0.004796, allocations: 28 kB / 224.8 MB, free: 13.19 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.633e-05/0.004842, allocations: 47.84 kB / 224.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.918e-05/0.004891, allocations: 55.88 kB / 224.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001856/0.005077, allocations: 167.3 kB / 225.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.829e-06/0.005087, allocations: 0 / 225.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.005088, allocations: 3.938 kB / 225.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.005098, allocations: 3.938 kB / 225.1 MB, free: 12.92 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004974/0.005595, allocations: 435 kB / 225.5 MB, free: 12.47 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.005626, allocations: 8.031 kB / 225.5 MB, free: 12.46 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.996e-05/0.005676, allocations: 36.91 kB / 225.6 MB, free: 12.43 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.005855, allocations: 157.5 kB / 225.7 MB, free: 12.25 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.005877, allocations: 20.88 kB / 225.7 MB, free: 12.23 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.005903, allocations: 24.38 kB / 225.8 MB, free: 12.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.006105, allocations: 226.5 kB / 226 MB, free: 11.96 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.006115, allocations: 4.188 kB / 226 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.006128, allocations: 8.375 kB / 226 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.006136, allocations: 8.375 kB / 226 MB, free: 11.94 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.006288, allocations: 75.33 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005482/0.006836, allocations: 0.7271 MB / 226.8 MB, free: 11.11 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.006956, allocations: 102.5 kB / 226.9 MB, free: 11 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.528e-05/0.006991, allocations: 40.78 kB / 226.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.007006, allocations: 8 kB / 227 MB, free: 10.95 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.495e-05/0.007101, allocations: 107.1 kB / 227.1 MB, free: 10.83 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.007102, allocations: 0 / 227.1 MB, free: 10.83 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001585/0.007261, allocations: 114.2 kB / 227.2 MB, free: 10.71 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.007295, allocations: 67.33 kB / 227.2 MB, free: 10.63 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.558e-05/0.007371, allocations: 168.4 kB / 227.4 MB, free: 10.46 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.007389, allocations: 33.7 kB / 227.4 MB, free: 10.42 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.828e-05/0.007447, allocations: 144.7 kB / 227.6 MB, free: 10.27 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.007478, allocations: 59.56 kB / 227.6 MB, free: 10.21 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-05/0.007537, allocations: 73.97 kB / 227.7 MB, free: 10.13 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.007734, allocations: 334.8 kB / 228 MB, free: 9.797 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.011e-05/0.007764, allocations: 28.64 kB / 228.1 MB, free: 9.77 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.499e-05/0.007829, allocations: 105.8 kB / 228.2 MB, free: 9.637 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.007939, allocations: 160.2 kB / 228.3 MB, free: 9.449 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.007941, allocations: 0 / 228.3 MB, free: 9.449 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000147/0.008088, allocations: 169.3 kB / 228.5 MB, free: 9.277 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.008104, allocations: 7.938 kB / 228.5 MB, free: 9.27 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.00811, allocations: 4 kB / 228.5 MB, free: 9.266 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.008124, allocations: 4 kB / 228.5 MB, free: 9.262 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.00824, allocations: 44.19 kB / 228.5 MB, free: 9.219 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.008247, allocations: 11.94 kB / 228.6 MB, free: 9.207 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.262e-05/0.008299, allocations: 31.78 kB / 228.6 MB, free: 9.176 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.008314, allocations: 8 kB / 228.6 MB, free: 9.168 MB / 234.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: 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 7.643e-05/0.008391, allocations: 136.4 kB / 228.7 MB, free: 9.027 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.482e-05/0.008406, allocations: 15.94 kB / 228.7 MB, free: 9.012 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.008532, allocations: 118.9 kB / 228.9 MB, free: 8.887 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.008536, allocations: 4 kB / 228.9 MB, free: 8.883 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.008537, allocations: 0 / 228.9 MB, free: 8.883 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.00854, allocations: 0 / 228.9 MB, free: 8.883 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002947/0.008835, allocations: 393.5 kB / 229.2 MB, free: 8.469 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.008836, allocations: 0 / 229.2 MB, free: 8.469 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.007e-05/0.008886, allocations: 27.91 kB / 229.3 MB, free: 8.441 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.422e-05/0.0089, allocations: 19.84 kB / 229.3 MB, free: 8.422 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.008902, allocations: 3.938 kB / 229.3 MB, free: 8.418 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.00891, allocations: 4 kB / 229.3 MB, free: 8.414 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.008912, allocations: 4 kB / 229.3 MB, free: 8.41 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.008912, allocations: 0 / 229.3 MB, free: 8.41 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.009033, allocations: 215.3 kB / 229.5 MB, free: 8.184 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.009046, allocations: 4 kB / 229.5 MB, free: 8.18 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.951e-05/0.009086, allocations: 15.98 kB / 229.5 MB, free: 8.164 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.492e-05/0.009131, allocations: 15.97 kB / 229.6 MB, free: 8.148 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.00914, allocations: 8 kB / 229.6 MB, free: 8.141 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.753e-05/0.009157, allocations: 24.83 kB / 229.6 MB, free: 8.113 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009158, allocations: 0 / 229.6 MB, free: 8.113 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001591/0.009317, allocations: 51.84 kB / 229.6 MB, free: 8.062 MB / 234.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 (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.000103/0.00942, allocations: 92.34 kB / 229.7 MB, free: 7.965 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001328/0.009552, allocations: 133.9 kB / 229.9 MB, free: 7.832 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.00956, allocations: 8.094 kB / 229.9 MB, free: 7.824 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 6.195e-05/0.009622, allocations: 69.16 kB / 229.9 MB, free: 7.754 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002052/0.009827, allocations: 210 kB / 230.1 MB, free: 7.512 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005346/0.01036, allocations: 333.1 kB / 230.5 MB, free: 7.164 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.995e-05/0.01041, allocations: 76.33 kB / 230.5 MB, free: 7.07 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 6.191e-05/0.01047, allocations: 25.95 kB / 230.6 MB, free: 7.043 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.908e-05/0.01056, allocations: 87.34 kB / 230.6 MB, free: 6.957 MB / 234.7 MB Notification: Performance of SimCode: time 7.02e-07/0.01056, allocations: 0 / 230.6 MB, free: 6.957 MB / 234.7 MB Notification: Performance of Templates: time 0.004091/0.01465, allocations: 2.109 MB / 232.8 MB, free: 4.863 MB / 234.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5053908806294203]