Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001101/0.001101, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.001114/0.001114, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.383/1.383, allocations: 205.1 MB / 224.7 MB, free: 12.46 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.001332/0.001333, allocations: 48.2 kB / 280.8 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09688, allocations: 46.63 MB / 327.4 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002939/0.09986, allocations: 1.781 MB / 329.2 MB, free: 3.012 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000633/0.1005, allocations: 267.2 kB / 329.5 MB, free: 2.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.1006, allocations: 7.938 kB / 329.5 MB, free: 2.742 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.1008, allocations: 15.86 kB / 329.5 MB, free: 2.727 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.295e-05/0.1009, allocations: 11.86 kB / 329.5 MB, free: 2.715 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.1013, allocations: 103.9 kB / 329.6 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.1016, allocations: 263.5 kB / 329.9 MB, free: 2.355 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.1019, allocations: 189.4 kB / 330 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.285e-05/0.102, allocations: 91.7 kB / 330.1 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.1021, allocations: 95.59 kB / 330.2 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.1022, allocations: 31.94 kB / 330.3 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.135e-05/0.1023, allocations: 24 kB / 330.3 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.015e-05/0.1023, allocations: 63.81 kB / 330.3 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.313e-05/0.1024, allocations: 99.47 kB / 330.4 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.1027, allocations: 183.9 kB / 330.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1027, allocations: 0 / 330.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1027, allocations: 0 / 330.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1027, allocations: 0 / 330.6 MB, free: 1.594 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006439/0.1033, allocations: 494 kB / 331.1 MB, free: 1.055 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.1034, allocations: 11.89 kB / 331.1 MB, free: 1.043 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.1035, allocations: 28.66 kB / 331.1 MB, free: 1.016 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.1037, allocations: 228.1 kB / 331.4 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/0.1038, allocations: 20.94 kB / 331.4 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.1038, allocations: 28.31 kB / 331.4 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.1043, allocations: 266.6 kB / 331.7 MB, free: 432 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1043, allocations: 8.125 kB / 331.7 MB, free: 424 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.1043, allocations: 19.92 kB / 331.7 MB, free: 404 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.1043, allocations: 8 kB / 331.7 MB, free: 396 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.1047, allocations: 161.6 kB / 331.9 MB, free: 236 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.1058, allocations: 0.9711 MB / 332.8 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.1061, allocations: 158.8 kB / 333 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.1062, allocations: 72.83 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.1062, allocations: 7.938 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002598/0.1065, allocations: 107.4 kB / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.1065, allocations: 0 / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004031/0.1069, allocations: 213.3 kB / 333.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.107, allocations: 59.41 kB / 333.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.1071, allocations: 153.6 kB / 333.6 MB, free: 14.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.1071, allocations: 37.7 kB / 333.6 MB, free: 14.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/0.1072, allocations: 140.5 kB / 333.8 MB, free: 14.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.713e-05/0.1073, allocations: 63.19 kB / 333.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.541e-05/0.1074, allocations: 82 kB / 333.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1075, allocations: 326.8 kB / 334.2 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.1076, allocations: 60.62 kB / 334.3 MB, free: 13.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.1078, allocations: 145.7 kB / 334.4 MB, free: 13.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.1081, allocations: 196.3 kB / 334.6 MB, free: 13.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1081, allocations: 0 / 334.6 MB, free: 13.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003599/0.1084, allocations: 253.2 kB / 334.9 MB, free: 13.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1085, allocations: 8 kB / 334.9 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1085, allocations: 0 / 334.9 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1085, allocations: 4 kB / 334.9 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1086, allocations: 35.92 kB / 334.9 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.1087, allocations: 4 kB / 334.9 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.1088, allocations: 35.61 kB / 335 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.1088, allocations: 20.28 kB / 335 MB, free: 12.91 MB / 286.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001468/0.109, allocations: 156.3 kB / 335.1 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.53e-05/0.109, allocations: 15.8 kB / 335.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003364/0.1093, allocations: 194.3 kB / 335.3 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1094, allocations: 0 / 335.3 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1094, allocations: 0 / 335.3 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1094, allocations: 0 / 335.3 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007117/0.1101, allocations: 0.5949 MB / 335.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1101, allocations: 0 / 335.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.164e-05/0.1102, allocations: 19.92 kB / 335.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1102, allocations: 3.938 kB / 335.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.1102, allocations: 8 kB / 336 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1102, allocations: 0 / 336 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1102, allocations: 0 / 336 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.1105, allocations: 271.3 kB / 336.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.1106, allocations: 96.8 kB / 336.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.1106, allocations: 4 kB / 336.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/0.1107, allocations: 7.984 kB / 336.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.1108, allocations: 19.98 kB / 336.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.1108, allocations: 11.98 kB / 336.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.204e-05/0.1109, allocations: 96.53 kB / 336.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1109, allocations: 0 / 336.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.1112, allocations: 51.84 kB / 336.5 MB, free: 11.27 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 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001631/0.1114, allocations: 111.1 kB / 336.6 MB, free: 11.15 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003743/0.1118, allocations: 195.7 kB / 336.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1118, allocations: 4 kB / 336.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.1119, allocations: 79.91 kB / 336.9 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.1122, allocations: 28.48 kB / 336.9 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006928/0.1129, allocations: 438.3 kB / 337.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.1133, allocations: 0.7361 MB / 338.1 MB, free: 9.625 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.601e-05/0.1133, allocations: 27.38 kB / 338.1 MB, free: 9.598 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1133, allocations: 4 kB / 338.1 MB, free: 9.594 MB / 286.1 MB Notification: Performance of Templates: time 0.004809/0.1182, allocations: 2.391 MB / 340.5 MB, free: 7.203 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches