Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001491/0.001491, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001614, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247.1 MB, free: 10.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 64.2 kB / 307.1 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1175, allocations: 50.54 MB / 357.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003308/0.1209, allocations: 1.803 MB / 359.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007278/0.1216, allocations: 299.1 kB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.323e-05/0.1217, allocations: 7.938 kB / 359.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.1219, allocations: 19.86 kB / 359.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.083e-05/0.1219, allocations: 11.88 kB / 359.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.1223, allocations: 103.9 kB / 359.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.1226, allocations: 263.5 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003126/0.123, allocations: 185.5 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.1231, allocations: 87.7 kB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.1232, allocations: 99.53 kB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.701e-05/0.1233, allocations: 24 kB / 360.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.578e-05/0.1233, allocations: 35.92 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.758e-05/0.1234, allocations: 59.83 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.1235, allocations: 91.53 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.1238, allocations: 183.6 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1238, allocations: 0 / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1238, allocations: 0 / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1238, allocations: 4 kB / 360.9 MB, free: 11.1 MB / 302.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.000725/0.1245, allocations: 0.4897 MB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.1246, allocations: 12.02 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.1248, allocations: 28.66 kB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.1251, allocations: 232.1 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.373e-05/0.1251, allocations: 24.88 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/0.1252, allocations: 28.38 kB / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.1257, allocations: 274.6 kB / 362 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1257, allocations: 4.125 kB / 362 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.1257, allocations: 15.94 kB / 362 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.1257, allocations: 4 kB / 362 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003061/0.1261, allocations: 169.6 kB / 362.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.1273, allocations: 0.9633 MB / 363.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.1276, allocations: 169.4 kB / 363.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.1277, allocations: 83.97 kB / 363.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.1277, allocations: 4 kB / 363.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.128, allocations: 140.3 kB / 363.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.667e-06/0.1281, allocations: 3.938 kB / 363.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004389/0.1285, allocations: 221.1 kB / 363.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.1286, allocations: 93.03 kB / 363.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.1287, allocations: 149.6 kB / 364 MB, free: 7.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.1288, allocations: 41.83 kB / 364 MB, free: 7.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1289, allocations: 136.5 kB / 364.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/0.1289, allocations: 63.19 kB / 364.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.1291, allocations: 81.67 kB / 364.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1292, allocations: 330.8 kB / 364.6 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.1294, allocations: 67.75 kB / 364.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.1296, allocations: 136.5 kB / 364.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.1299, allocations: 189 kB / 365 MB, free: 6.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1299, allocations: 0 / 365 MB, free: 6.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003991/0.1303, allocations: 257.4 kB / 365.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1303, allocations: 8 kB / 365.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1303, allocations: 0 / 365.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.1303, allocations: 4 kB / 365.3 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.1305, allocations: 35.92 kB / 365.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1305, allocations: 7.984 kB / 365.3 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.1306, allocations: 23.75 kB / 365.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.1307, allocations: 15.98 kB / 365.4 MB, free: 6.316 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.0001716/0.1308, allocations: 173.7 kB / 365.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.1309, allocations: 15.81 kB / 365.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.439e-05/0.1309, allocations: 12.84 kB / 365.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.1309, allocations: 4 kB / 365.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.131, allocations: 3.938 kB / 365.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.131, allocations: 3.984 kB / 365.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007747/0.1317, allocations: 0.5742 MB / 366.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1318, allocations: 4 kB / 366.1 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.4e-05/0.1318, allocations: 16 kB / 366.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.1319, allocations: 4 kB / 366.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.1319, allocations: 7.922 kB / 366.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1319, allocations: 0 / 366.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.1319, allocations: 4 kB / 366.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.1322, allocations: 272.1 kB / 366.4 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.233e-05/0.1323, allocations: 96.91 kB / 366.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.1323, allocations: 11.88 kB / 366.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.992e-05/0.1324, allocations: 8 kB / 366.6 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.423e-05/0.1325, allocations: 23.97 kB / 366.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.1325, allocations: 4 kB / 366.6 MB, free: 4.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.293e-05/0.1326, allocations: 99.02 kB / 366.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1326, allocations: 0 / 366.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.1329, allocations: 51.78 kB / 366.7 MB, free: 4.836 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: 18 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$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 (24): * Single equations (assignments): 19 * 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.0001405/0.1331, allocations: 115.2 kB / 366.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000397/0.1335, allocations: 187.6 kB / 367 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.1335, allocations: 4 kB / 367 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.1336, allocations: 78.95 kB / 367.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.1339, allocations: 16 kB / 367.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007236/0.1347, allocations: 430.9 kB / 367.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.1351, allocations: 0.7365 MB / 368.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.107e-05/0.1351, allocations: 19.44 kB / 368.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1351, allocations: 4 kB / 368.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of Templates: time 0.004513/0.1396, allocations: 2.235 MB / 370.5 MB, free: 0.957 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches