Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 111.3 kB / 17.28 MB, free: 6.199 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.001052/0.001052, allocations: 193.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.00132/0.00132, allocations: 51.92 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1276, allocations: 46.63 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004932/0.1326, allocations: 1.917 MB / 328.7 MB, free: 2.871 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.1343, allocations: 0.6126 MB / 329.3 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.1345, allocations: 3.938 kB / 329.3 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.1347, allocations: 19.84 kB / 329.3 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.1349, allocations: 27.73 kB / 329.3 MB, free: 2.199 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.1352, allocations: 55.95 kB / 329.4 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.1354, allocations: 171.3 kB / 329.6 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.1357, allocations: 73.42 kB / 329.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.1358, allocations: 67.7 kB / 329.7 MB, free: 1.836 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.136, allocations: 79.56 kB / 329.8 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.961e-05/0.136, allocations: 12 kB / 329.8 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.212e-05/0.1361, allocations: 27.98 kB / 329.8 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.1362, allocations: 47.83 kB / 329.9 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.94e-05/0.1363, allocations: 71.55 kB / 329.9 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.1366, allocations: 179.6 kB / 330.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.1366, allocations: 0 / 330.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1366, allocations: 4 kB / 330.1 MB, free: 1.422 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1366, allocations: 0 / 330.1 MB, free: 1.422 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008943/0.1375, allocations: 0.5028 MB / 330.6 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.1376, allocations: 12.03 kB / 330.6 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.1376, allocations: 20.66 kB / 330.7 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.1379, allocations: 235.7 kB / 330.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.1379, allocations: 16.66 kB / 330.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.1379, allocations: 12.38 kB / 330.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003696/0.1383, allocations: 207.1 kB / 331.1 MB, free: 332 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1383, allocations: 0 / 331.1 MB, free: 332 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.1384, allocations: 8 kB / 331.1 MB, free: 324 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.1384, allocations: 7.984 kB / 331.1 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002897/0.1387, allocations: 147.8 kB / 331.3 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.1398, allocations: 0.7663 MB / 332 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.1401, allocations: 165 kB / 332.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.1403, allocations: 81.8 kB / 332.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.227e-05/0.1403, allocations: 3.984 kB / 332.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.1406, allocations: 153.1 kB / 332.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.173e-06/0.1406, allocations: 8 kB / 332.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005189/0.1411, allocations: 253.7 kB / 332.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.1412, allocations: 81.09 kB / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.1413, allocations: 199 kB / 333 MB, free: 14.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.1414, allocations: 33.7 kB / 333 MB, free: 14.3 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.1415, allocations: 140.1 kB / 333.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.1416, allocations: 43.45 kB / 333.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.1416, allocations: 45.7 kB / 333.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1418, allocations: 330.8 kB / 333.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.1419, allocations: 67.95 kB / 333.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.1421, allocations: 118.8 kB / 333.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.1425, allocations: 214.8 kB / 333.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1425, allocations: 0 / 333.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004318/0.143, allocations: 249.1 kB / 334.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.143, allocations: 7.938 kB / 334.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.143, allocations: 4.109 kB / 334.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.143, allocations: 12.03 kB / 334.2 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.1432, allocations: 36.09 kB / 334.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.1432, allocations: 7.938 kB / 334.2 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.1433, allocations: 31.83 kB / 334.3 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.1434, allocations: 4 kB / 334.3 MB, free: 12.93 MB / 286.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001317/0.1435, allocations: 145.7 kB / 334.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.1435, allocations: 15.81 kB / 334.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004584/0.144, allocations: 210.9 kB / 334.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.144, allocations: 4 kB / 334.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.144, allocations: 0 / 334.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.144, allocations: 0 / 334.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002706/0.1443, allocations: 269.4 kB / 334.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1443, allocations: 4 kB / 334.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1444, allocations: 23.92 kB / 334.9 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1444, allocations: 0 / 334.9 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1445, allocations: 4 kB / 334.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.1445, allocations: 4 kB / 334.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1445, allocations: 4 kB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003726/0.1449, allocations: 225.5 kB / 335.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.139e-05/0.145, allocations: 100.9 kB / 335.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.145, allocations: 0 / 335.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.1451, allocations: 11.98 kB / 335.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.1452, allocations: 27.95 kB / 335.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.1452, allocations: 4 kB / 335.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1453, allocations: 144.6 kB / 335.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1453, allocations: 0 / 335.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.1456, allocations: 39.84 kB / 335.5 MB, free: 11.61 MB / 286.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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001469/0.1457, allocations: 103.2 kB / 335.6 MB, free: 11.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003605/0.1461, allocations: 179.8 kB / 335.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1461, allocations: 3.938 kB / 335.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.1463, allocations: 79.95 kB / 335.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.1466, allocations: 56.69 kB / 335.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006866/0.1473, allocations: 445.6 kB / 336.3 MB, free: 10.73 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.1478, allocations: 0.7319 MB / 337.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.1479, allocations: 41.5 kB / 337.1 MB, free: 9.93 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.1479, allocations: 23.38 kB / 337.1 MB, free: 9.906 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.148, allocations: 0 / 337.1 MB, free: 9.906 MB / 286.1 MB Notification: Performance of Templates: time 0.005403/0.1534, allocations: 1.985 MB / 339.1 MB, free: 7.926 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches