Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") 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: 109.4 kB / 18.34 MB, free: 4.699 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.00166/0.00166, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.574/1.574, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001359/0.001359, allocations: 55.92 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09571/0.09709, allocations: 46.62 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002964/0.1001, allocations: 1.477 MB / 330.2 MB, free: 2.281 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006824/0.1008, allocations: 259.1 kB / 330.4 MB, free: 2.027 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.101, allocations: 4 kB / 330.4 MB, free: 2.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1011, allocations: 19.73 kB / 330.5 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.63e-05/0.1012, allocations: 19.81 kB / 330.5 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.1016, allocations: 115.8 kB / 330.6 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.102, allocations: 255.6 kB / 330.8 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003394/0.1023, allocations: 166.3 kB / 331 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.1025, allocations: 91.69 kB / 331.1 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.1026, allocations: 91.61 kB / 331.2 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.1026, allocations: 20 kB / 331.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.083e-05/0.1027, allocations: 32 kB / 331.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/0.1028, allocations: 59.81 kB / 331.3 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.1029, allocations: 91.53 kB / 331.4 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.1032, allocations: 235.2 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1032, allocations: 0 / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1032, allocations: 4 kB / 331.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.1033, allocations: 0 / 331.6 MB, free: 0.8398 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007318/0.104, allocations: 490.4 kB / 332.1 MB, free: 312 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.104, allocations: 12.03 kB / 332.1 MB, free: 300 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.553e-05/0.1041, allocations: 16.75 kB / 332.1 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.1044, allocations: 232 kB / 332.3 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.184e-05/0.1045, allocations: 25.02 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.1046, allocations: 24.38 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004628/0.105, allocations: 248 kB / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1051, allocations: 192 / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.686e-05/0.1051, allocations: 15.94 kB / 332.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1051, allocations: 4 kB / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.1054, allocations: 157.6 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.1066, allocations: 0.7012 MB / 333.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.107, allocations: 174.8 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1071, allocations: 76.83 kB / 333.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.988e-05/0.1072, allocations: 0 / 333.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.1074, allocations: 127.2 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.1074, allocations: 3.938 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004848/0.1079, allocations: 225.2 kB / 334.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.108, allocations: 55.41 kB / 334.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.1081, allocations: 141.9 kB / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.2e-05/0.1082, allocations: 41.69 kB / 334.3 MB, free: 13.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.1083, allocations: 124.6 kB / 334.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.517e-05/0.1084, allocations: 63.19 kB / 334.5 MB, free: 13.71 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.1085, allocations: 78 kB / 334.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1087, allocations: 330.8 kB / 334.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1088, allocations: 60.62 kB / 335 MB, free: 13.23 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.109, allocations: 124.1 kB / 335.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.1093, allocations: 178.6 kB / 335.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1093, allocations: 0 / 335.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004226/0.1098, allocations: 249.2 kB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1098, allocations: 4 kB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1098, allocations: 4 kB / 335.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.1098, allocations: 4 kB / 335.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.11, allocations: 31.91 kB / 335.6 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.11, allocations: 4 kB / 335.6 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.1101, allocations: 23.78 kB / 335.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.1102, allocations: 16 kB / 335.6 MB, free: 12.55 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001486/0.1103, allocations: 154.2 kB / 335.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.1104, allocations: 19.69 kB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003326/0.1107, allocations: 194.4 kB / 336 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1107, allocations: 7.984 kB / 336 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1107, allocations: 0 / 336 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1107, allocations: 0 / 336 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006654/0.1114, allocations: 0.5724 MB / 336.5 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1114, allocations: 8 kB / 336.5 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.542e-05/0.1115, allocations: 15.94 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.1115, allocations: 7.984 kB / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.1115, allocations: 4 kB / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1115, allocations: 0 / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1115, allocations: 3.938 kB / 336.6 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.1118, allocations: 271.3 kB / 336.8 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.662e-05/0.1119, allocations: 100.8 kB / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.1119, allocations: 4 kB / 336.9 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.154e-05/0.112, allocations: 11.98 kB / 337 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-05/0.1121, allocations: 27.91 kB / 337 MB, free: 11.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.1122, allocations: 4 kB / 337 MB, free: 11.06 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.002e-05/0.1122, allocations: 99.77 kB / 337.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1122, allocations: 0 / 337.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003279/0.1126, allocations: 51.78 kB / 337.1 MB, free: 10.91 MB / 286.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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001709/0.1128, allocations: 115.1 kB / 337.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000347/0.1131, allocations: 183.7 kB / 337.4 MB, free: 10.61 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1131, allocations: 0 / 337.4 MB, free: 10.61 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.1133, allocations: 87.86 kB / 337.5 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.1136, allocations: 23.98 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005921/0.1142, allocations: 320.7 kB / 337.9 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1145, allocations: 0.7328 MB / 338.6 MB, free: 9.402 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.666e-05/0.1146, allocations: 21.95 kB / 338.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.1146, allocations: 23.42 kB / 338.6 MB, free: 9.363 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1146, allocations: 4 kB / 338.6 MB, free: 9.359 MB / 286.1 MB Notification: Performance of Templates: time 0.004826/0.1195, allocations: 1.881 MB / 340.5 MB, free: 7.488 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches