Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001538/0.001538, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001668/0.001668, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.488/1.488, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 61.28 kB / 307.9 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.1003, allocations: 50.55 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00289/0.1033, allocations: 1.467 MB / 359.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006857/0.104, allocations: 292.8 kB / 360.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.215e-05/0.1041, allocations: 0 / 360.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.1042, allocations: 31.56 kB / 360.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.706e-05/0.1043, allocations: 19.8 kB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.1047, allocations: 111.8 kB / 360.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.105, allocations: 255.6 kB / 360.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.1053, allocations: 170.3 kB / 360.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1055, allocations: 83.77 kB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.1056, allocations: 103.5 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.1057, allocations: 20 kB / 361 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.55e-05/0.1058, allocations: 39.92 kB / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.1058, allocations: 47.89 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.106, allocations: 95.52 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002918/0.1063, allocations: 235.2 kB / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1063, allocations: 0 / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1063, allocations: 0 / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1063, allocations: 0 / 361.4 MB, free: 10.96 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007668/0.1071, allocations: 486.8 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1071, allocations: 8.031 kB / 361.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002664/0.1074, allocations: 36.72 kB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.1077, allocations: 220.1 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.1077, allocations: 20.94 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.1078, allocations: 32.3 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004283/0.1082, allocations: 240 kB / 362.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1082, allocations: 4.125 kB / 362.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.1083, allocations: 7.938 kB / 362.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1083, allocations: 12 kB / 362.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.1086, allocations: 153.7 kB / 362.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.1097, allocations: 0.6934 MB / 363.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.11, allocations: 174.8 kB / 363.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.1101, allocations: 79.45 kB / 363.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.1102, allocations: 0 / 363.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.1104, allocations: 119.3 kB / 363.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.1104, allocations: 0 / 363.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004446/0.1109, allocations: 224.4 kB / 363.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.111, allocations: 59.34 kB / 363.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.1111, allocations: 145.8 kB / 364 MB, free: 8.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/0.1111, allocations: 37.7 kB / 364.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.1112, allocations: 128.6 kB / 364.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.832e-05/0.1113, allocations: 67.17 kB / 364.3 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1114, allocations: 74.02 kB / 364.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1116, allocations: 326.8 kB / 364.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1117, allocations: 60.62 kB / 364.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.1119, allocations: 124.1 kB / 364.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.1121, allocations: 178.7 kB / 365 MB, free: 7.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.1122, allocations: 4 kB / 365 MB, free: 7.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003732/0.1125, allocations: 241.2 kB / 365.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1126, allocations: 4 kB / 365.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.1126, allocations: 4 kB / 365.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.1126, allocations: 4 kB / 365.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.1127, allocations: 27.92 kB / 365.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.1127, allocations: 8 kB / 365.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1129, allocations: 27.69 kB / 365.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.1129, allocations: 24.16 kB / 365.3 MB, free: 6.695 MB / 302.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.0001595/0.1131, allocations: 149.8 kB / 365.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.1131, allocations: 11.84 kB / 365.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.198e-05/0.1131, allocations: 20.84 kB / 365.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1131, allocations: 0 / 365.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.1132, allocations: 3.984 kB / 365.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1132, allocations: 4 kB / 365.5 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007583/0.1139, allocations: 0.5487 MB / 366.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.114, allocations: 4 kB / 366.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.552e-05/0.114, allocations: 19.94 kB / 366.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.114, allocations: 0 / 366.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.1141, allocations: 3.984 kB / 366.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.1141, allocations: 0 / 366.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1141, allocations: 7.938 kB / 366.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.1144, allocations: 263.8 kB / 366.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.365e-05/0.1145, allocations: 96.86 kB / 366.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.1145, allocations: 7.984 kB / 366.5 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-05/0.1146, allocations: 8 kB / 366.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.751e-05/0.1147, allocations: 27.84 kB / 366.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.1147, allocations: 8 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.324e-05/0.1148, allocations: 94.64 kB / 366.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1148, allocations: 0 / 366.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002842/0.1151, allocations: 43.91 kB / 366.7 MB, free: 5.293 MB / 302.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0001267/0.1152, allocations: 103.5 kB / 366.8 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.1156, allocations: 203.6 kB / 367 MB, free: 4.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1156, allocations: 0 / 367 MB, free: 4.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.1157, allocations: 71.92 kB / 367 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.116, allocations: 30.61 kB / 367.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005847/0.1166, allocations: 341.9 kB / 367.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/0.117, allocations: 0.7323 MB / 368.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.562e-05/0.1171, allocations: 19.44 kB / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1171, allocations: 0 / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of Templates: time 0.00409/0.1212, allocations: 2.176 MB / 370.3 MB, free: 1.559 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches