Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001558/0.001558, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001802/0.001802, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 42.52 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1059, allocations: 49.45 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003237/0.1092, allocations: 1.691 MB / 352.4 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008267/0.11, allocations: 287.1 kB / 352.7 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001653/0.1102, allocations: 11.94 kB / 352.7 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.1104, allocations: 27.67 kB / 352.7 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.033e-05/0.1105, allocations: 19.8 kB / 352.7 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.111, allocations: 119.8 kB / 352.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003917/0.1114, allocations: 267.5 kB / 353.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.1118, allocations: 181.6 kB / 353.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.112, allocations: 95.69 kB / 353.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.1122, allocations: 95.55 kB / 353.5 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.112e-05/0.1123, allocations: 20 kB / 353.5 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.921e-05/0.1124, allocations: 32 kB / 353.5 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.152e-05/0.1125, allocations: 71.75 kB / 353.6 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1126, allocations: 91.53 kB / 353.7 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.113, allocations: 243.2 kB / 353.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.113, allocations: 4 kB / 353.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.113, allocations: 0 / 353.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.113, allocations: 0 / 353.9 MB, free: 1.176 MB / 286.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.0008117/0.1138, allocations: 491 kB / 354.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1139, allocations: 19.83 kB / 354.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.149e-05/0.114, allocations: 24.66 kB / 354.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.1142, allocations: 232.1 kB / 354.7 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.356e-05/0.1143, allocations: 28.88 kB / 354.7 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.323e-05/0.1144, allocations: 24.38 kB / 354.7 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004759/0.1148, allocations: 270.6 kB / 355 MB, free: 0 / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.1149, allocations: 192 / 355 MB, free: 0 / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.1149, allocations: 16.02 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1149, allocations: 8 kB / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003173/0.1153, allocations: 173.5 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.1165, allocations: 0.967 MB / 356.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.1169, allocations: 181.4 kB / 356.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.117, allocations: 81.62 kB / 356.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.117, allocations: 4 kB / 356.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.1174, allocations: 133.1 kB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.884e-06/0.1174, allocations: 4 kB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004951/0.1179, allocations: 228.8 kB / 356.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.118, allocations: 85.11 kB / 356.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.1181, allocations: 146.5 kB / 357 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.1182, allocations: 37.7 kB / 357 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.1183, allocations: 148.5 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.43e-05/0.1184, allocations: 55.2 kB / 357.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.1185, allocations: 81.67 kB / 357.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1186, allocations: 338.8 kB / 357.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.1188, allocations: 63.97 kB / 357.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.1189, allocations: 136.3 kB / 357.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.1192, allocations: 201 kB / 358 MB, free: 12.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1192, allocations: 0 / 358 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003981/0.1196, allocations: 257.2 kB / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1197, allocations: 8 kB / 358.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1197, allocations: 0 / 358.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1197, allocations: 4 kB / 358.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.1199, allocations: 32.2 kB / 358.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.1199, allocations: 15.92 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.12, allocations: 27.75 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.385e-05/0.1201, allocations: 12 kB / 358.4 MB, free: 12.38 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.0001484/0.1202, allocations: 161.6 kB / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.1203, allocations: 15.84 kB / 358.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003577/0.1206, allocations: 198.2 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.1206, allocations: 4 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1207, allocations: 7.984 kB / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1207, allocations: 0 / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007868/0.1215, allocations: 0.587 MB / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1215, allocations: 0 / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.683e-05/0.1216, allocations: 19.92 kB / 359.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.655e-06/0.1216, allocations: 7.938 kB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.1216, allocations: 4 kB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.1216, allocations: 8 kB / 359.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1216, allocations: 3.984 kB / 359.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/0.122, allocations: 280.5 kB / 359.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.756e-05/0.122, allocations: 96.86 kB / 359.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.1221, allocations: 7.938 kB / 359.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1222, allocations: 11.98 kB / 359.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.1223, allocations: 27.97 kB / 359.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.1223, allocations: 4 kB / 359.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.08e-05/0.1224, allocations: 101.2 kB / 359.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1224, allocations: 0 / 359.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.1227, allocations: 51.84 kB / 360 MB, free: 10.68 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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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.0001839/0.1229, allocations: 115.2 kB / 360.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004076/0.1233, allocations: 204.4 kB / 360.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1234, allocations: 4.062 kB / 360.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.1235, allocations: 83.84 kB / 360.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.1238, allocations: 23.92 kB / 360.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006828/0.1245, allocations: 366.5 kB / 360.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.1248, allocations: 0.7401 MB / 361.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/0.1249, allocations: 19.44 kB / 361.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1249, allocations: 0 / 361.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of Templates: time 0.005005/0.1299, allocations: 2.433 MB / 363.9 MB, free: 6.645 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches