Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 59.69 kB / 306.9 MB, free: 1.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.102, allocations: 50.53 MB / 357.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002846/0.1048, allocations: 1.576 MB / 359 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006594/0.1055, allocations: 307.1 kB / 359.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.1057, allocations: 4 kB / 359.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1058, allocations: 15.86 kB / 359.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.533e-05/0.1059, allocations: 7.875 kB / 359.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.1063, allocations: 99.91 kB / 359.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.1066, allocations: 239.5 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003037/0.1069, allocations: 146.5 kB / 359.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.107, allocations: 83.75 kB / 359.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.1072, allocations: 91.55 kB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.312e-05/0.1072, allocations: 16 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.899e-05/0.1073, allocations: 19.94 kB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.601e-05/0.1073, allocations: 55.81 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.811e-05/0.1074, allocations: 87.53 kB / 360.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.1076, allocations: 159.7 kB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1076, allocations: 0 / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1076, allocations: 0 / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.1077, allocations: 0 / 360.3 MB, free: 11.62 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.0006773/0.1083, allocations: 485 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.1084, allocations: 8.031 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.1086, allocations: 28.73 kB / 360.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.1089, allocations: 228.1 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.1089, allocations: 20.94 kB / 361.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.109, allocations: 28.36 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003935/0.1094, allocations: 240 kB / 361.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1094, allocations: 4.172 kB / 361.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.1094, allocations: 15.94 kB / 361.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.1095, allocations: 4 kB / 361.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002788/0.1097, allocations: 157.6 kB / 361.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009548/0.1107, allocations: 0.6973 MB / 362.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.111, allocations: 168.9 kB / 362.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.1111, allocations: 80.83 kB / 362.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.1112, allocations: 7.984 kB / 362.4 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.1114, allocations: 122.7 kB / 362.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.873e-06/0.1114, allocations: 0 / 362.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000409/0.1118, allocations: 217.2 kB / 362.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.1118, allocations: 55.41 kB / 362.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.112, allocations: 157.7 kB / 363 MB, free: 8.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.112, allocations: 33.7 kB / 363 MB, free: 8.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.561e-05/0.1121, allocations: 128.6 kB / 363.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.671e-05/0.1122, allocations: 63.17 kB / 363.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.653e-05/0.1122, allocations: 81.95 kB / 363.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1124, allocations: 322.8 kB / 363.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.1125, allocations: 68.62 kB / 363.7 MB, free: 8.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.1126, allocations: 128.1 kB / 363.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.1129, allocations: 175.2 kB / 364 MB, free: 7.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1129, allocations: 0 / 364 MB, free: 7.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003526/0.1133, allocations: 241.4 kB / 364.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1133, allocations: 8 kB / 364.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1133, allocations: 0 / 364.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1133, allocations: 4 kB / 364.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.1134, allocations: 31.86 kB / 364.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.1135, allocations: 7.984 kB / 364.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.1136, allocations: 35.62 kB / 364.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.1136, allocations: 8 kB / 364.3 MB, free: 7.352 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.0001282/0.1137, allocations: 157.8 kB / 364.4 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.1138, allocations: 15.84 kB / 364.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.768e-05/0.1138, allocations: 20.78 kB / 364.5 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.1138, allocations: 7.984 kB / 364.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1138, allocations: 0 / 364.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1138, allocations: 0 / 364.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007328/0.1146, allocations: 0.5448 MB / 365 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1146, allocations: 0 / 365 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.1147, allocations: 23.92 kB / 365.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1147, allocations: 4 kB / 365.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.1147, allocations: 4 kB / 365.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1147, allocations: 0 / 365.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1147, allocations: 3.938 kB / 365.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002828/0.115, allocations: 262.5 kB / 365.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.1151, allocations: 100.8 kB / 365.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.1151, allocations: 4 kB / 365.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.534e-05/0.1152, allocations: 12 kB / 365.4 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.146e-05/0.1153, allocations: 23.91 kB / 365.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.1153, allocations: 4 kB / 365.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.22e-05/0.1154, allocations: 99.27 kB / 365.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1154, allocations: 0 / 365.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.1157, allocations: 43.91 kB / 365.6 MB, free: 5.934 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.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0001032/0.1158, allocations: 107.2 kB / 365.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002938/0.1161, allocations: 175.7 kB / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1161, allocations: 0 / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.1162, allocations: 79.91 kB / 366 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.1165, allocations: 23.92 kB / 366 MB, free: 5.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005943/0.1171, allocations: 404.8 kB / 366.4 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.1174, allocations: 0.7326 MB / 367.1 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.025e-05/0.1175, allocations: 23.44 kB / 367.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1175, allocations: 0 / 367.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of Templates: time 0.003844/0.1213, allocations: 2.153 MB / 369.3 MB, free: 2.184 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches