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.001643/0.001643, allocations: 115.5 kB / 17.69 MB, free: 5.438 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.001706/0.001706, allocations: 192 kB / 18.63 MB, free: 4.504 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.546/1.546, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009934/0.0009935, allocations: 47.44 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1163, allocations: 49.44 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002952/0.1193, allocations: 1.691 MB / 353.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000688/0.12, allocations: 287.1 kB / 353.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.775e-05/0.1201, allocations: 0 / 353.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.1203, allocations: 31.67 kB / 353.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.347e-05/0.1203, allocations: 19.75 kB / 353.5 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003854/0.1207, allocations: 119.8 kB / 353.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.121, allocations: 271.5 kB / 353.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002981/0.1213, allocations: 181.5 kB / 354.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.1214, allocations: 95.64 kB / 354.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1216, allocations: 99.59 kB / 354.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.1216, allocations: 27.94 kB / 354.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.857e-05/0.1217, allocations: 28 kB / 354.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/0.1218, allocations: 55.88 kB / 354.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1219, allocations: 103.5 kB / 354.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.1222, allocations: 255.1 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1222, allocations: 0 / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1222, allocations: 0 / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1222, allocations: 0 / 354.7 MB, free: 476 kB / 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.0006989/0.1229, allocations: 498.7 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.123, allocations: 15.91 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.407e-05/0.123, allocations: 24.66 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.1233, allocations: 228.1 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.1234, allocations: 20.94 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/0.1234, allocations: 28.38 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004259/0.1239, allocations: 278.5 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1239, allocations: 192 / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.1239, allocations: 15.94 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.1239, allocations: 12 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.1243, allocations: 165.6 kB / 356 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.1254, allocations: 0.967 MB / 356.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002788/0.1257, allocations: 173.1 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.1258, allocations: 93.62 kB / 357.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.1258, allocations: 4 kB / 357.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001999/0.126, allocations: 133 kB / 357.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.126, allocations: 0 / 357.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000442/0.1265, allocations: 234.4 kB / 357.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.1266, allocations: 89.22 kB / 357.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.1267, allocations: 149.3 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.1267, allocations: 37.69 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.598e-05/0.1268, allocations: 144.5 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.692e-05/0.1269, allocations: 59.2 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.679e-05/0.127, allocations: 81.67 kB / 358.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1271, allocations: 326.8 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.1272, allocations: 59.97 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.1274, allocations: 156 kB / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.1277, allocations: 200.9 kB / 358.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1277, allocations: 0 / 358.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003656/0.1281, allocations: 249.2 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1281, allocations: 8 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1281, allocations: 0 / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.1281, allocations: 7.984 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.1283, allocations: 35.92 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.1283, allocations: 7.938 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.1284, allocations: 24.03 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.1284, allocations: 16 kB / 359.2 MB, free: 11.66 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.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,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.0001524/0.1286, allocations: 161.6 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.1286, allocations: 7.906 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003285/0.129, allocations: 198.3 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.129, allocations: 7.938 kB / 359.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.129, allocations: 0 / 359.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.129, allocations: 3.938 kB / 359.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007106/0.1297, allocations: 0.5909 MB / 360.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1297, allocations: 0 / 360.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.629e-05/0.1298, allocations: 19.98 kB / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1298, allocations: 0 / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.1299, allocations: 11.94 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1299, allocations: 0 / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1299, allocations: 0 / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003171/0.1302, allocations: 300.4 kB / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.44e-05/0.1302, allocations: 92.86 kB / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.1303, allocations: 15.92 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.094e-05/0.1304, allocations: 4 kB / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.51e-05/0.1305, allocations: 19.97 kB / 360.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.1305, allocations: 12 kB / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.074e-05/0.1306, allocations: 91.27 kB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1306, allocations: 0 / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003451/0.1309, allocations: 51.84 kB / 360.8 MB, free: 9.98 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.localActive,transition1.enableFire,step.active,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: 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.0001579/0.1311, allocations: 119.1 kB / 360.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003359/0.1314, allocations: 192 kB / 361.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1314, allocations: 0 / 361.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.1316, allocations: 95.72 kB / 361.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002952/0.1319, allocations: 24.59 kB / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005766/0.1325, allocations: 336.7 kB / 361.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.1328, allocations: 0.7323 MB / 362.2 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.631e-05/0.1329, allocations: 29.94 kB / 362.3 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.333e-05/0.133, allocations: 23.44 kB / 362.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.133, allocations: 0 / 362.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of Templates: time 0.004777/0.1378, allocations: 1.869 MB / 364.2 MB, free: 6.512 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/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