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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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.001423/0.001423, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.00159/0.00159, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 46.27 kB / 300.8 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1061, allocations: 49.44 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003478/0.1097, allocations: 1.747 MB / 352 MB, free: 2.988 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007792/0.1105, allocations: 311 kB / 352.3 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.1107, allocations: 0 / 352.3 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.1108, allocations: 23.8 kB / 352.3 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.491e-05/0.1109, allocations: 15.92 kB / 352.3 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004596/0.1114, allocations: 99.89 kB / 352.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003678/0.1118, allocations: 275.5 kB / 352.7 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.1122, allocations: 190.2 kB / 352.9 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.1123, allocations: 95.69 kB / 353 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.1125, allocations: 99.48 kB / 353.1 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.023e-05/0.1125, allocations: 24 kB / 353.1 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.216e-05/0.1126, allocations: 35.98 kB / 353.1 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.081e-05/0.1127, allocations: 55.83 kB / 353.2 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.1128, allocations: 107.5 kB / 353.3 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002422/0.1131, allocations: 183.9 kB / 353.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1131, allocations: 0 / 353.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1131, allocations: 3.938 kB / 353.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.1131, allocations: 4 kB / 353.5 MB, free: 1.492 MB / 286.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.0008113/0.1139, allocations: 498.6 kB / 353.9 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.114, allocations: 11.89 kB / 354 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.833e-05/0.1141, allocations: 28.64 kB / 354 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.1143, allocations: 232 kB / 354.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.221e-05/0.1144, allocations: 24.94 kB / 354.2 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.1145, allocations: 32.36 kB / 354.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004738/0.1149, allocations: 266.6 kB / 354.5 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.115, allocations: 4.125 kB / 354.5 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.115, allocations: 11.94 kB / 354.5 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.115, allocations: 4 kB / 354.5 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.1153, allocations: 173.6 kB / 354.7 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.1166, allocations: 0.9788 MB / 355.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.1169, allocations: 177.2 kB / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.1171, allocations: 85.72 kB / 356 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.1171, allocations: 4 kB / 356 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000384/0.1175, allocations: 145 kB / 356.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 4.699e-06/0.1175, allocations: 0 / 356.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000503/0.118, allocations: 230.5 kB / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/0.1181, allocations: 89.05 kB / 356.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.1182, allocations: 153.6 kB / 356.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.1183, allocations: 37.7 kB / 356.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1184, allocations: 136.5 kB / 356.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.815e-05/0.1185, allocations: 63.19 kB / 356.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.1186, allocations: 77.69 kB / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1187, allocations: 334.9 kB / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.1188, allocations: 63.97 kB / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.119, allocations: 136.5 kB / 357.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.1193, allocations: 197 kB / 357.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1193, allocations: 0 / 357.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004277/0.1197, allocations: 261.2 kB / 357.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1198, allocations: 4 kB / 357.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1198, allocations: 4 kB / 357.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.1198, allocations: 4 kB / 357.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.1199, allocations: 31.92 kB / 357.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.12, allocations: 8.281 kB / 357.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.1201, allocations: 31.67 kB / 357.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.1201, allocations: 16 kB / 357.9 MB, free: 12.67 MB / 302.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.condition,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.0001612/0.1203, allocations: 161.7 kB / 358.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/0.1203, allocations: 15.8 kB / 358.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.1207, allocations: 186.4 kB / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1207, allocations: 0 / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1207, allocations: 8 kB / 358.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1207, allocations: 0 / 358.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007401/0.1215, allocations: 0.5986 MB / 358.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1215, allocations: 0 / 358.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.375e-05/0.1216, allocations: 23.88 kB / 358.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.1216, allocations: 3.938 kB / 358.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.1216, allocations: 7.984 kB / 358.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.1216, allocations: 3.938 kB / 358.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1216, allocations: 4 kB / 358.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003181/0.1219, allocations: 288.5 kB / 359.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.697e-05/0.122, allocations: 88.95 kB / 359.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.122, allocations: 11.94 kB / 359.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.687e-05/0.1221, allocations: 15.92 kB / 359.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.789e-05/0.1222, allocations: 11.98 kB / 359.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.1222, allocations: 23.98 kB / 359.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.876e-05/0.1223, allocations: 98.78 kB / 359.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1223, allocations: 0 / 359.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.1226, allocations: 51.84 kB / 359.5 MB, free: 10.97 MB / 302.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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0001466/0.1228, allocations: 107.2 kB / 359.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003877/0.1232, allocations: 204.1 kB / 359.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1232, allocations: 4.125 kB / 359.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.1233, allocations: 83.84 kB / 359.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.1236, allocations: 26.89 kB / 359.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006645/0.1243, allocations: 438.4 kB / 360.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1246, allocations: 0.7362 MB / 361.1 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.232e-05/0.1247, allocations: 23.42 kB / 361.1 MB, free: 9.305 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1247, allocations: 0 / 361.1 MB, free: 9.305 MB / 302.1 MB Notification: Performance of Templates: time 0.004774/0.1295, allocations: 2.441 MB / 363.6 MB, free: 6.867 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (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) 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) Reference file matches