Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000871/0.000871, allocations: 91.56 kB / 16.65 MB, free: 6.59 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.00118/0.00118, allocations: 183.4 kB / 17.56 MB, free: 6.203 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.613/1.613, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003052, allocations: 11.94 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1165, allocations: 50.42 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001972/0.1185, allocations: 1.436 MB / 353.3 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006706/0.1192, allocations: 307.1 kB / 353.6 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.718e-05/0.1193, allocations: 4 kB / 353.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.1194, allocations: 19.8 kB / 353.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.836e-05/0.1195, allocations: 7.922 kB / 353.6 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003556/0.1199, allocations: 103.9 kB / 353.7 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003208/0.1202, allocations: 247.5 kB / 353.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000302/0.1205, allocations: 169.8 kB / 354.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.1206, allocations: 71.72 kB / 354.2 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.1208, allocations: 83.53 kB / 354.3 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.1208, allocations: 12 kB / 354.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.076e-05/0.1209, allocations: 16 kB / 354.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.966e-05/0.1209, allocations: 43.83 kB / 354.3 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1211, allocations: 105.2 kB / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.1213, allocations: 207.2 kB / 354.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1213, allocations: 0 / 354.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1213, allocations: 0 / 354.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1214, allocations: 4 kB / 354.6 MB, free: 0.8711 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.0006597/0.122, allocations: 451 kB / 355.1 MB, free: 384 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1221, allocations: 12.03 kB / 355.1 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.1221, allocations: 20.75 kB / 355.1 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.1223, allocations: 232 kB / 355.3 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.1224, allocations: 20.94 kB / 355.4 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.1224, allocations: 24.38 kB / 355.4 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.1229, allocations: 282.5 kB / 355.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1229, allocations: 192 / 355.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.123, allocations: 11.94 kB / 355.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.123, allocations: 8 kB / 355.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.1233, allocations: 165.6 kB / 355.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1248, allocations: 0.9865 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004211/0.1252, allocations: 165.5 kB / 357 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.1254, allocations: 89.56 kB / 357.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.1255, allocations: 8 kB / 357.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003508/0.1258, allocations: 137 kB / 357.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.425e-06/0.1259, allocations: 0 / 357.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006626/0.1265, allocations: 227.3 kB / 357.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.1266, allocations: 81.11 kB / 357.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.1268, allocations: 153.8 kB / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.451e-05/0.1269, allocations: 45.69 kB / 357.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.127, allocations: 136.5 kB / 357.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.522e-05/0.1271, allocations: 59.2 kB / 357.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1272, allocations: 53.69 kB / 357.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002263/0.1275, allocations: 338.8 kB / 358.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.1277, allocations: 63.97 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.128, allocations: 140.5 kB / 358.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.1284, allocations: 189 kB / 358.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.1284, allocations: 0 / 358.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006224/0.1291, allocations: 261.3 kB / 358.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.1291, allocations: 8 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1291, allocations: 0 / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.1291, allocations: 4 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.1294, allocations: 31.92 kB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.1294, allocations: 7.938 kB / 359 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.1296, allocations: 27.83 kB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.1296, allocations: 12 kB / 359 MB, free: 12.15 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.0002546/0.1299, allocations: 169.8 kB / 359.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.13, allocations: 15.81 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005013/0.1305, allocations: 186.4 kB / 359.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.1305, allocations: 4 kB / 359.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.1305, allocations: 3.938 kB / 359.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.1305, allocations: 3.984 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.1317, allocations: 0.5986 MB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.1317, allocations: 3.984 kB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.866e-05/0.1318, allocations: 12 kB / 360 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.1318, allocations: 3.938 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.1319, allocations: 11.98 kB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.1319, allocations: 0 / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1319, allocations: 4 kB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004988/0.1324, allocations: 292.4 kB / 360.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.1325, allocations: 88.95 kB / 360.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.09e-05/0.1325, allocations: 11.94 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.1327, allocations: 11.98 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.99e-05/0.1328, allocations: 19.98 kB / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.1328, allocations: 7.984 kB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.504e-05/0.1329, allocations: 95.27 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1329, allocations: 4 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005516/0.1335, allocations: 55.75 kB / 360.6 MB, free: 10.45 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,transition1.enableFire,step.localActive,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.000192/0.1337, allocations: 111.1 kB / 360.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004688/0.1342, allocations: 187.7 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1342, allocations: 0 / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.1344, allocations: 88.41 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.1349, allocations: 20.06 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000982/0.1359, allocations: 423.9 kB / 361.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.1364, allocations: 0.7326 MB / 362.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.1365, allocations: 25.94 kB / 362.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.774e-05/0.1366, allocations: 23.44 kB / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1367, allocations: 0 / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of Templates: time 0.007263/0.1439, allocations: 1.727 MB / 363.9 MB, free: 7.074 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches