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.001051/0.001051, allocations: 109.4 kB / 18.34 MB, free: 4.699 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.001019/0.001019, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.508/1.508, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001232/0.001232, allocations: 51.94 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1239, allocations: 46.63 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003562/0.1275, allocations: 1.859 MB / 330.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1288, allocations: 0.6327 MB / 331.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.129, allocations: 0 / 331.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.1292, allocations: 31.67 kB / 331.2 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.1293, allocations: 31.66 kB / 331.3 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.1297, allocations: 71.84 kB / 331.3 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002578/0.1299, allocations: 163.4 kB / 331.5 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.1301, allocations: 65.62 kB / 331.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.1303, allocations: 67.72 kB / 331.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.1305, allocations: 95.47 kB / 331.7 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.1305, allocations: 12 kB / 331.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.446e-05/0.1306, allocations: 16 kB / 331.7 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.1307, allocations: 43.84 kB / 331.8 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.1308, allocations: 83.52 kB / 331.9 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.1311, allocations: 183.2 kB / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.1311, allocations: 8 kB / 332.1 MB, free: 412 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1311, allocations: 0 / 332.1 MB, free: 412 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1311, allocations: 0 / 332.1 MB, free: 412 kB / 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.001185/0.1323, allocations: 0.5028 MB / 332.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.1324, allocations: 8.031 kB / 332.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.293e-05/0.1324, allocations: 24.66 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.1329, allocations: 239.7 kB / 332.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.1329, allocations: 16.66 kB / 332.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.745e-05/0.1329, allocations: 12.38 kB / 332.8 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/0.1333, allocations: 199.3 kB / 333 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1333, allocations: 0 / 333 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.1334, allocations: 4 kB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.1334, allocations: 11.94 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.1337, allocations: 147.8 kB / 333.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.1349, allocations: 0.7701 MB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.1352, allocations: 172.9 kB / 334.1 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.1354, allocations: 69.81 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.632e-05/0.1355, allocations: 4 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.1358, allocations: 149 kB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 3.336e-06/0.1358, allocations: 0 / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006886/0.1365, allocations: 261.4 kB / 334.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/0.1366, allocations: 85.05 kB / 334.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.1368, allocations: 199 kB / 334.9 MB, free: 13.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.1368, allocations: 33.7 kB / 334.9 MB, free: 13.28 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.137, allocations: 144.1 kB / 335.1 MB, free: 13.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.137, allocations: 39.44 kB / 335.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.1371, allocations: 41.7 kB / 335.1 MB, free: 13.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1373, allocations: 330.8 kB / 335.5 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.1374, allocations: 71.89 kB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.1376, allocations: 126.8 kB / 335.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.138, allocations: 206.6 kB / 335.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.138, allocations: 0 / 335.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004082/0.1384, allocations: 241.8 kB / 336.1 MB, free: 12.03 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.1384, allocations: 12.19 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1384, allocations: 0 / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.1385, allocations: 4 kB / 336.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.1387, allocations: 31.92 kB / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1387, allocations: 4 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.1388, allocations: 31.81 kB / 336.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.1389, allocations: 12 kB / 336.2 MB, free: 11.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.0001378/0.139, allocations: 153.6 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/0.139, allocations: 19.81 kB / 336.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004373/0.1395, allocations: 215.1 kB / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1395, allocations: 3.938 kB / 336.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1395, allocations: 0 / 336.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1395, allocations: 0 / 336.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003445/0.1399, allocations: 277.4 kB / 336.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1399, allocations: 0 / 336.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.14, allocations: 19.98 kB / 336.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.14, allocations: 4 kB / 336.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.14, allocations: 7.938 kB / 336.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.14, allocations: 0 / 336.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.14, allocations: 0 / 336.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004588/0.1405, allocations: 233.5 kB / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.442e-05/0.1406, allocations: 89.02 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.1406, allocations: 7.938 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.1407, allocations: 23.97 kB / 337.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.528e-05/0.1408, allocations: 19.97 kB / 337.2 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.1408, allocations: 0 / 337.2 MB, free: 10.77 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.141, allocations: 148.4 kB / 337.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.141, allocations: 3.938 kB / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002642/0.1412, allocations: 43.84 kB / 337.4 MB, free: 10.58 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.0001421/0.1414, allocations: 99.25 kB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003999/0.1418, allocations: 179.8 kB / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1418, allocations: 0 / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.142, allocations: 79.91 kB / 337.8 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.1423, allocations: 56.22 kB / 337.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007382/0.1431, allocations: 369.2 kB / 338.2 MB, free: 9.777 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.1435, allocations: 0.728 MB / 338.9 MB, free: 9.023 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.81e-05/0.1436, allocations: 37.52 kB / 339 MB, free: 8.988 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.869e-05/0.1436, allocations: 19.44 kB / 339 MB, free: 8.969 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1436, allocations: 0 / 339 MB, free: 8.969 MB / 286.1 MB Notification: Performance of Templates: time 0.006188/0.1498, allocations: 2.115 MB / 341.1 MB, free: 6.855 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches