Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 107.2 kB / 18.34 MB, free: 4.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.001283/0.001283, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.671/1.671, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001182/0.001182, allocations: 51.94 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09714, allocations: 46.62 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002917/0.1001, allocations: 1.67 MB / 330.4 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000612/0.1007, allocations: 263.2 kB / 330.6 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.082e-05/0.1008, allocations: 4 kB / 330.6 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.101, allocations: 27.67 kB / 330.7 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.939e-05/0.101, allocations: 15.81 kB / 330.7 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.1014, allocations: 123.8 kB / 330.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003212/0.1018, allocations: 263.6 kB / 331.1 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003809/0.1022, allocations: 194.8 kB / 331.2 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1023, allocations: 91.69 kB / 331.3 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.1024, allocations: 95.59 kB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.644e-05/0.1025, allocations: 24 kB / 331.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.432e-05/0.1025, allocations: 28 kB / 331.5 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.1026, allocations: 59.83 kB / 331.5 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1027, allocations: 111.5 kB / 331.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.103, allocations: 247 kB / 331.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.103, allocations: 0 / 331.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.103, allocations: 0 / 331.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.103, allocations: 0 / 331.9 MB, free: 0.5547 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.0006596/0.1037, allocations: 490.1 kB / 332.4 MB, free: 24 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1037, allocations: 11.89 kB / 332.4 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.381e-05/0.1038, allocations: 28.83 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.1041, allocations: 239.9 kB / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/0.1042, allocations: 28.94 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.1042, allocations: 28.38 kB / 332.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004725/0.1047, allocations: 274.5 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.1047, allocations: 4.172 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.1048, allocations: 11.94 kB / 333 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1048, allocations: 8 kB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.1051, allocations: 173.6 kB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.1064, allocations: 0.9516 MB / 334.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.1067, allocations: 158.7 kB / 334.3 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1068, allocations: 72.92 kB / 334.3 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.1068, allocations: 4 kB / 334.3 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.1071, allocations: 115.2 kB / 334.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.833e-06/0.1071, allocations: 0 / 334.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004664/0.1076, allocations: 213.3 kB / 334.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.1076, allocations: 59.39 kB / 334.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.1078, allocations: 163 kB / 334.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.1078, allocations: 33.7 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.108, allocations: 144.4 kB / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.108, allocations: 55.34 kB / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1081, allocations: 81.92 kB / 335.2 MB, free: 13.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1083, allocations: 322.8 kB / 335.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.1084, allocations: 68.62 kB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.1086, allocations: 141.8 kB / 335.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002762/0.1089, allocations: 192.2 kB / 335.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.1089, allocations: 8 kB / 335.9 MB, free: 12.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003932/0.1093, allocations: 245.2 kB / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1093, allocations: 8 kB / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1093, allocations: 0 / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.1094, allocations: 4 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.1095, allocations: 39.91 kB / 336.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.1095, allocations: 4.281 kB / 336.2 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.689e-05/0.1097, allocations: 31.72 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.1097, allocations: 8 kB / 336.2 MB, free: 11.88 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.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,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.000174/0.1099, allocations: 164.3 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.26e-05/0.1099, allocations: 11.81 kB / 336.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003422/0.1102, allocations: 190.8 kB / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1103, allocations: 3.938 kB / 336.6 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1103, allocations: 7.984 kB / 336.6 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.1103, allocations: 8 kB / 336.6 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007111/0.111, allocations: 0.5909 MB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.111, allocations: 0 / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.092e-05/0.1111, allocations: 15.94 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1111, allocations: 3.938 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1111, allocations: 11.98 kB / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1111, allocations: 0 / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1111, allocations: 0 / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.1115, allocations: 267.4 kB / 337.5 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.1115, allocations: 96.84 kB / 337.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.1115, allocations: 11.88 kB / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-05/0.1116, allocations: 8 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.1117, allocations: 19.97 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.1117, allocations: 8 kB / 337.6 MB, free: 10.37 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.688e-05/0.1118, allocations: 96.11 kB / 337.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1118, allocations: 0 / 337.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.1121, allocations: 55.83 kB / 337.8 MB, free: 10.22 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.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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: 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.0001475/0.1123, allocations: 111.5 kB / 337.9 MB, free: 10.1 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.1126, allocations: 187.7 kB / 338.1 MB, free: 9.918 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1126, allocations: 0 / 338.1 MB, free: 9.918 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.1128, allocations: 83.91 kB / 338.2 MB, free: 9.836 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.1131, allocations: 24.53 kB / 338.2 MB, free: 9.812 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006909/0.1138, allocations: 345.4 kB / 338.5 MB, free: 9.445 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.1142, allocations: 0.7361 MB / 339.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.276e-05/0.1142, allocations: 25.94 kB / 339.3 MB, free: 8.656 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.138e-05/0.1143, allocations: 23.44 kB / 339.3 MB, free: 8.633 MB / 286.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1143, allocations: 0 / 339.3 MB, free: 8.633 MB / 286.1 MB Notification: Performance of Templates: time 0.005693/0.12, allocations: 1.867 MB / 341.2 MB, free: 6.77 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches