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.001371/0.001371, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001652/0.001652, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.463/1.463, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000959/0.0009589, allocations: 47.02 kB / 299.9 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.1003, allocations: 49.45 MB / 349.4 MB, free: 4.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003364/0.1037, allocations: 1.783 MB / 351.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007575/0.1045, allocations: 311 kB / 351.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.976e-05/0.1046, allocations: 4 kB / 351.5 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.1048, allocations: 19.81 kB / 351.5 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.708e-05/0.1049, allocations: 7.922 kB / 351.5 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.1052, allocations: 103.9 kB / 351.6 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002945/0.1055, allocations: 255.5 kB / 351.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003075/0.1058, allocations: 173.8 kB / 352 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.661e-05/0.106, allocations: 87.7 kB / 352.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.1061, allocations: 95.53 kB / 352.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.1061, allocations: 16 kB / 352.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.414e-05/0.1062, allocations: 20 kB / 352.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.128e-05/0.1063, allocations: 55.81 kB / 352.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.1064, allocations: 91.53 kB / 352.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.1067, allocations: 207.3 kB / 352.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1067, allocations: 0 / 352.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1067, allocations: 8 kB / 352.6 MB, free: 1.676 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1067, allocations: 3.938 kB / 352.6 MB, free: 1.672 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.0008525/0.1076, allocations: 495 kB / 353.1 MB, free: 1.133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.1077, allocations: 15.97 kB / 353.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.109e-05/0.1077, allocations: 24.66 kB / 353.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.108, allocations: 232.1 kB / 353.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.1081, allocations: 24.94 kB / 353.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.1081, allocations: 24.38 kB / 353.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004812/0.1086, allocations: 282.5 kB / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1086, allocations: 192 / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.829e-05/0.1087, allocations: 7.938 kB / 353.7 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.1087, allocations: 8 kB / 353.7 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.109, allocations: 161.6 kB / 353.8 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.1102, allocations: 0.9826 MB / 354.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.1105, allocations: 177.4 kB / 355 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.1107, allocations: 77.64 kB / 355.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.1107, allocations: 8 kB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.111, allocations: 145 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.111, allocations: 0 / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004588/0.1114, allocations: 228.5 kB / 355.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.1115, allocations: 85.11 kB / 355.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.1116, allocations: 152.1 kB / 355.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.1117, allocations: 37.7 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1118, allocations: 144.5 kB / 355.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.1118, allocations: 59.19 kB / 355.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.1119, allocations: 81.67 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1121, allocations: 330.8 kB / 356.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.1122, allocations: 63.97 kB / 356.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.1124, allocations: 140.5 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.1127, allocations: 189 kB / 356.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.1127, allocations: 0 / 356.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00039/0.1131, allocations: 261.2 kB / 356.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.1132, allocations: 11.12 kB / 357 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1132, allocations: 3.984 kB / 357 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.1132, allocations: 4 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.1134, allocations: 35.92 kB / 357 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.1134, allocations: 7.938 kB / 357 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.1135, allocations: 31.73 kB / 357 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.1135, allocations: 8 kB / 357 MB, free: 12.87 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.0001569/0.1137, allocations: 173.9 kB / 357.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.1137, allocations: 15.84 kB / 357.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.1141, allocations: 194.2 kB / 357.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1141, allocations: 4 kB / 357.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1141, allocations: 0 / 357.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.1141, allocations: 3.984 kB / 357.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007175/0.1148, allocations: 0.5947 MB / 358 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1149, allocations: 0 / 358 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.866e-05/0.1149, allocations: 12 kB / 358 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.1149, allocations: 7.938 kB / 358 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.115, allocations: 7.984 kB / 358.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.115, allocations: 4 kB / 358.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.115, allocations: 0 / 358.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003174/0.1153, allocations: 284.5 kB / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.931e-05/0.1154, allocations: 96.86 kB / 358.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.1154, allocations: 7.938 kB / 358.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.361e-05/0.1155, allocations: 11.98 kB / 358.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.541e-05/0.1156, allocations: 23.97 kB / 358.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.1156, allocations: 4 kB / 358.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.01e-05/0.1157, allocations: 95.27 kB / 358.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1157, allocations: 0 / 358.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.116, allocations: 55.84 kB / 358.6 MB, free: 11.18 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.0001764/0.1162, allocations: 111.1 kB / 358.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003399/0.1165, allocations: 187.7 kB / 358.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1165, allocations: 0 / 358.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.1167, allocations: 87.84 kB / 359 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.117, allocations: 16.62 kB / 359 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007028/0.1177, allocations: 422.5 kB / 359.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.1181, allocations: 0.7404 MB / 360.2 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.917e-05/0.1182, allocations: 25.95 kB / 360.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.219e-05/0.1182, allocations: 23.42 kB / 360.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1182, allocations: 0 / 360.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of Templates: time 0.00515/0.1234, allocations: 1.744 MB / 362 MB, free: 7.781 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