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.001083/0.001083, allocations: 89.92 kB / 16.31 MB, free: 5.551 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.001601/0.001602, allocations: 178.8 kB / 17.21 MB, free: 5.469 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.568/1.568, allocations: 223.2 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002933/0.0002934, allocations: 8 kB / 300.8 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 50.42 MB / 351.2 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002538/0.1242, allocations: 1.401 MB / 352.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008524/0.1251, allocations: 303.1 kB / 352.9 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.1253, allocations: 4 kB / 352.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.1254, allocations: 19.8 kB / 353 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.24e-05/0.1255, allocations: 15.88 kB / 353 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.126, allocations: 87.89 kB / 353.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.1264, allocations: 231.5 kB / 353.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003865/0.1268, allocations: 141.8 kB / 353.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.127, allocations: 75.75 kB / 353.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.1271, allocations: 75.62 kB / 353.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.1272, allocations: 8 kB / 353.6 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.626e-05/0.1273, allocations: 19.98 kB / 353.6 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.025e-05/0.1274, allocations: 43.83 kB / 353.6 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.807e-05/0.1275, allocations: 57.58 kB / 353.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.1278, allocations: 163.6 kB / 353.9 MB, free: 1.391 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/0.1278, allocations: 0 / 353.9 MB, free: 1.391 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1278, allocations: 0 / 353.9 MB, free: 1.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.1278, allocations: 0 / 353.9 MB, free: 1.391 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.0009045/0.1287, allocations: 450.9 kB / 354.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.1288, allocations: 8.031 kB / 354.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.714e-05/0.1289, allocations: 27.75 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003519/0.1292, allocations: 226.7 kB / 354.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.001e-05/0.1293, allocations: 24.56 kB / 354.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.45e-05/0.1294, allocations: 31.98 kB / 354.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.1299, allocations: 262 kB / 354.9 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1299, allocations: 4 kB / 354.9 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.1299, allocations: 15.88 kB / 354.9 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.1299, allocations: 8 kB / 354.9 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000335/0.1303, allocations: 165.5 kB / 355 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.1318, allocations: 0.9867 MB / 356 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.1321, allocations: 169.9 kB / 356.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.1322, allocations: 82.16 kB / 356.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.1322, allocations: 8.172 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003991/0.1326, allocations: 144.1 kB / 356.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.1327, allocations: 0 / 356.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005596/0.1332, allocations: 215.4 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.1333, allocations: 89.09 kB / 356.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.1335, allocations: 149.6 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.1335, allocations: 49.77 kB / 356.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1336, allocations: 136.5 kB / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/0.1337, allocations: 63.17 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/0.1337, allocations: 12 kB / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1339, allocations: 330.8 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.134, allocations: 59.97 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.1342, allocations: 136.5 kB / 357.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.1343, allocations: 72.45 kB / 357.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1343, allocations: 8 kB / 357.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003823/0.1347, allocations: 249.2 kB / 358 MB, free: 12.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1348, allocations: 10.34 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1348, allocations: 0 / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1348, allocations: 4 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.1349, allocations: 35.92 kB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.042e-05/0.135, allocations: 12.2 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.1351, allocations: 27.75 kB / 358.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.1351, allocations: 16 kB / 358.1 MB, free: 12.87 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.1353, allocations: 166.3 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.1353, allocations: 15.81 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003712/0.1357, allocations: 182.4 kB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1357, allocations: 4 kB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.1357, allocations: 4 kB / 358.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.1358, allocations: 3.984 kB / 358.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008874/0.1366, allocations: 0.5913 MB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1367, allocations: 0 / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.482e-05/0.1367, allocations: 23.88 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1368, allocations: 4 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.1368, allocations: 3.984 kB / 359.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1368, allocations: 4 kB / 359.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.1368, allocations: 11.94 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003629/0.1372, allocations: 284.5 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.822e-05/0.1373, allocations: 92.86 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.1373, allocations: 8 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.389e-05/0.1374, allocations: 11.98 kB / 359.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.133e-05/0.1375, allocations: 27.92 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.1375, allocations: 12 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.834e-05/0.1376, allocations: 91.27 kB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1376, allocations: 0 / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003192/0.1379, allocations: 51.84 kB / 359.6 MB, free: 11.18 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.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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001957/0.1381, allocations: 114.9 kB / 359.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003582/0.1385, allocations: 184.1 kB / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1385, allocations: 0 / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.1386, allocations: 83.91 kB / 360 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.139, allocations: 31.03 kB / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007124/0.1397, allocations: 392 kB / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1401, allocations: 0.7406 MB / 361.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.1402, allocations: 25.94 kB / 361.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.1403, allocations: 19.44 kB / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1403, allocations: 3.938 kB / 361.2 MB, free: 9.547 MB / 302.1 MB Notification: Performance of Templates: time 0.005249/0.1456, allocations: 1.665 MB / 362.9 MB, free: 7.891 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/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