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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 109.4 kB / 17.73 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 192.2 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 43.94 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1227, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00325/0.1261, allocations: 1.667 MB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007811/0.1269, allocations: 260 kB / 377 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.127, allocations: 3.938 kB / 377 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.1272, allocations: 27.73 kB / 377.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.296e-05/0.1272, allocations: 23.73 kB / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004501/0.1277, allocations: 115.8 kB / 377.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.128, allocations: 271.5 kB / 377.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003621/0.1284, allocations: 198.8 kB / 377.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1285, allocations: 87.7 kB / 377.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1287, allocations: 95.59 kB / 377.8 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.822e-05/0.1287, allocations: 24 kB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.553e-05/0.1288, allocations: 28 kB / 377.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.077e-05/0.1289, allocations: 63.81 kB / 378 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.129, allocations: 103.4 kB / 378.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003176/0.1294, allocations: 259 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1294, allocations: 0 / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1294, allocations: 0 / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1294, allocations: 0 / 378.3 MB, free: 1.379 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.0007211/0.1301, allocations: 493.8 kB / 378.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1302, allocations: 19.83 kB / 378.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.508e-05/0.1303, allocations: 24.75 kB / 378.8 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.1306, allocations: 236 kB / 379.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.702e-05/0.1307, allocations: 24.88 kB / 379.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/0.1307, allocations: 32.36 kB / 379.1 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004966/0.1312, allocations: 266.6 kB / 379.4 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1313, allocations: 4.188 kB / 379.4 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.1313, allocations: 11.94 kB / 379.4 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.1313, allocations: 8 kB / 379.4 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003449/0.1317, allocations: 165.6 kB / 379.6 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3163/0.448, allocations: 0.9594 MB / 380.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.4484, allocations: 152.6 kB / 380.7 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.4485, allocations: 77.34 kB / 380.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.4486, allocations: 6.625 kB / 380.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.4488, allocations: 122.2 kB / 380.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.535e-06/0.4488, allocations: 0 / 380.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005584/0.4494, allocations: 208.8 kB / 381.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.4495, allocations: 61.69 kB / 381.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.4497, allocations: 151.4 kB / 381.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.4497, allocations: 37.38 kB / 381.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.4498, allocations: 147.1 kB / 381.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.569e-05/0.4499, allocations: 58.03 kB / 381.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.4501, allocations: 80.91 kB / 381.6 MB, free: 11.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.689e-05/0.4502, allocations: 326.1 kB / 381.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.4503, allocations: 61.38 kB / 382 MB, free: 11.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.4505, allocations: 145.8 kB / 382.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.4509, allocations: 187.3 kB / 382.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.4509, allocations: 3.938 kB / 382.3 MB, free: 11.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005731/0.4515, allocations: 252.7 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.4515, allocations: 5.859 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.4515, allocations: 2.406 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.024e-05/0.4515, allocations: 4.281 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.4517, allocations: 39.06 kB / 382.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.892e-05/0.4518, allocations: 9.094 kB / 382.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.4519, allocations: 30.06 kB / 382.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-05/0.452, allocations: 15.75 kB / 382.7 MB, free: 11.37 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.0001981/0.4522, allocations: 154.9 kB / 382.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.4522, allocations: 15.2 kB / 382.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004966/0.4527, allocations: 197.3 kB / 383 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.4527, allocations: 4.891 kB / 383 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4528, allocations: 0.5938 kB / 383 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.4528, allocations: 5.125 kB / 383 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.4538, allocations: 0.5849 MB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4538, allocations: 1.828 kB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.471e-05/0.4539, allocations: 13.38 kB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.454, allocations: 3.688 kB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.454, allocations: 10.56 kB / 383.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.454, allocations: 5.156 kB / 383.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.454, allocations: 5.25 kB / 383.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003652/0.4544, allocations: 270.2 kB / 383.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.4544, allocations: 93.73 kB / 384 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.4545, allocations: 7.312 kB / 384 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.4546, allocations: 12.14 kB / 384 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.4547, allocations: 20.62 kB / 384 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.4547, allocations: 7.094 kB / 384.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.891e-05/0.4548, allocations: 105.1 kB / 384.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4548, allocations: 0 / 384.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003886/0.4552, allocations: 52.06 kB / 384.2 MB, free: 10.28 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.0002253/0.4554, allocations: 113.6 kB / 384.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004339/0.4559, allocations: 185.1 kB / 384.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.4559, allocations: 3.641 kB / 384.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.4561, allocations: 81.39 kB / 384.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.4564, allocations: 29.45 kB / 384.6 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007135/0.4571, allocations: 338.4 kB / 384.9 MB, free: 9.852 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.4574, allocations: 0.7362 MB / 385.7 MB, free: 9.152 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.4576, allocations: 27.09 kB / 385.7 MB, free: 9.148 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.787e-05/0.4576, allocations: 22.39 kB / 385.7 MB, free: 9.141 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4576, allocations: 0 / 385.7 MB, free: 9.141 MB / 318.1 MB Notification: Performance of Templates: time 0.006844/0.4645, allocations: 1.899 MB / 387.6 MB, free: 8.992 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches