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.001842/0.001842, allocations: 105.8 kB / 18.3 MB, free: 4.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002116/0.002116, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.4 MB / 247.5 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.00189, allocations: 65.34 kB / 307.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09742, allocations: 50.53 MB / 358.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003235/0.1007, allocations: 1.706 MB / 359.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006786/0.1014, allocations: 295.1 kB / 360.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.605e-05/0.1015, allocations: 7.938 kB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.1017, allocations: 23.75 kB / 360.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.537e-05/0.1017, allocations: 23.72 kB / 360.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.1021, allocations: 107.9 kB / 360.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.1024, allocations: 275.5 kB / 360.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003148/0.1027, allocations: 185.5 kB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.1029, allocations: 91.69 kB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.103, allocations: 103.5 kB / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.1031, allocations: 24 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.761e-05/0.1031, allocations: 28 kB / 361 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.167e-05/0.1032, allocations: 59.83 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.1033, allocations: 95.52 kB / 361.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.1036, allocations: 235.2 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1036, allocations: 0 / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1037, allocations: 4 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.1037, allocations: 3.938 kB / 361.4 MB, free: 10.87 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.0007306/0.1044, allocations: 499 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1045, allocations: 8.031 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002138/0.1047, allocations: 32.64 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.105, allocations: 232 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.105, allocations: 20.94 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.166e-05/0.1051, allocations: 32.36 kB / 362.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.1055, allocations: 270.5 kB / 362.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1055, allocations: 192 / 362.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1056, allocations: 19.92 kB / 362.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.1056, allocations: 8 kB / 362.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.1059, allocations: 157.6 kB / 362.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.1071, allocations: 0.9672 MB / 363.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.1074, allocations: 174.8 kB / 363.8 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.1076, allocations: 77.64 kB / 363.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.1076, allocations: 8 kB / 363.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.1079, allocations: 137 kB / 364 MB, free: 8.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1079, allocations: 0 / 364 MB, free: 8.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004564/0.1084, allocations: 224.1 kB / 364.2 MB, free: 7.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.1085, allocations: 85.11 kB / 364.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1086, allocations: 153.8 kB / 364.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.1087, allocations: 37.7 kB / 364.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.1088, allocations: 140.5 kB / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/0.1089, allocations: 63.19 kB / 364.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.109, allocations: 73.69 kB / 364.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1091, allocations: 330.8 kB / 365.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1093, allocations: 67.75 kB / 365.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.1095, allocations: 136.5 kB / 365.3 MB, free: 6.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.1098, allocations: 196.4 kB / 365.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.1098, allocations: 3.984 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004045/0.1102, allocations: 261.3 kB / 365.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1102, allocations: 8 kB / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1102, allocations: 0 / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1102, allocations: 7.938 kB / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.1104, allocations: 31.92 kB / 365.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1104, allocations: 7.938 kB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.1105, allocations: 23.75 kB / 365.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.1105, allocations: 15.94 kB / 365.8 MB, free: 6.086 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.000164/0.1107, allocations: 173.9 kB / 366 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.1107, allocations: 15.81 kB / 366 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.152e-05/0.1108, allocations: 20.83 kB / 366 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1108, allocations: 4 kB / 366 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1108, allocations: 0 / 366 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1108, allocations: 0 / 366 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007573/0.1116, allocations: 0.5674 MB / 366.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1116, allocations: 0 / 366.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.631e-05/0.1117, allocations: 23.92 kB / 366.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1117, allocations: 0 / 366.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.1117, allocations: 7.938 kB / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1117, allocations: 0 / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1117, allocations: 0 / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.1121, allocations: 281.5 kB / 366.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.341e-05/0.1121, allocations: 85.02 kB / 367 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.1122, allocations: 7.938 kB / 367 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.366e-05/0.1123, allocations: 11.98 kB / 367 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.1124, allocations: 15.98 kB / 367 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.1124, allocations: 8 kB / 367 MB, free: 4.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.068e-05/0.1125, allocations: 91.27 kB / 367.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1125, allocations: 4 kB / 367.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.1128, allocations: 55.73 kB / 367.2 MB, free: 4.617 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.localActive,transition1.enableFire,step.active,initialStep.active,$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 (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.0001223/0.1129, allocations: 107.2 kB / 367.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003739/0.1133, allocations: 195.9 kB / 367.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1133, allocations: 0 / 367.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.1134, allocations: 78.95 kB / 367.6 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.1137, allocations: 28.53 kB / 367.6 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006236/0.1144, allocations: 366.2 kB / 367.9 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/0.1147, allocations: 0.7287 MB / 368.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.1148, allocations: 19.44 kB / 368.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of SimCode: time 2.395e-06/0.1148, allocations: 4 kB / 368.7 MB, free: 3.031 MB / 302.1 MB Notification: Performance of Templates: time 0.004376/0.1192, allocations: 2.248 MB / 370.9 MB, free: 0.7891 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