Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.0008997/0.0008996, allocations: 93.83 kB / 16.65 MB, free: 6.598 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.001025/0.001025, allocations: 179 kB / 17.56 MB, free: 6.199 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.417/1.417, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002843, allocations: 15.92 kB / 301.4 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1201, allocations: 50.41 MB / 351.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002185/0.1224, allocations: 1.566 MB / 353.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.1234, allocations: 0.5649 MB / 354 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.466e-05/0.1235, allocations: 7.938 kB / 354 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.1237, allocations: 15.86 kB / 354 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.1238, allocations: 31.72 kB / 354 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.1241, allocations: 55.94 kB / 354.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.1243, allocations: 159.4 kB / 354.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.1245, allocations: 65.62 kB / 354.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.953e-05/0.1246, allocations: 43.8 kB / 354.3 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.1247, allocations: 75.56 kB / 354.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.631e-05/0.1248, allocations: 4 kB / 354.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.139e-05/0.1248, allocations: 15.94 kB / 354.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.395e-05/0.1249, allocations: 39.83 kB / 354.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.391e-05/0.125, allocations: 93.19 kB / 354.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.1252, allocations: 159.6 kB / 354.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1252, allocations: 0 / 354.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1253, allocations: 0 / 354.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1253, allocations: 0 / 354.7 MB, free: 0.5781 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008661/0.1261, allocations: 495 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1262, allocations: 8.031 kB / 355.2 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.331e-05/0.1262, allocations: 24.66 kB / 355.2 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.1265, allocations: 239.7 kB / 355.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.1265, allocations: 16.64 kB / 355.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.1266, allocations: 20.12 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003562/0.1269, allocations: 199.7 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.127, allocations: 4 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.127, allocations: 4 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.127, allocations: 11.98 kB / 355.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003144/0.1273, allocations: 159.8 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.1285, allocations: 0.7818 MB / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.1288, allocations: 165 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.129, allocations: 89.78 kB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.129, allocations: 160 / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002685/0.1293, allocations: 164.9 kB / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.1293, allocations: 0 / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000605/0.1299, allocations: 261.3 kB / 357.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.13, allocations: 89.11 kB / 357.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.1302, allocations: 202.9 kB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1302, allocations: 29.7 kB / 357.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1303, allocations: 136.2 kB / 357.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.1304, allocations: 47.36 kB / 357.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/0.1304, allocations: 25.7 kB / 357.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1306, allocations: 334.8 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.1308, allocations: 83.88 kB / 358.2 MB, free: 12.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.1309, allocations: 118.8 kB / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.1313, allocations: 214.7 kB / 358.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1313, allocations: 0 / 358.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004174/0.1317, allocations: 249.2 kB / 358.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1317, allocations: 8 kB / 358.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1318, allocations: 192 / 358.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.1318, allocations: 8 kB / 358.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.132, allocations: 35.92 kB / 358.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.132, allocations: 4 kB / 358.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.1321, allocations: 39.81 kB / 358.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.1322, allocations: 4 kB / 358.9 MB, free: 12.05 MB / 302.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.0001565/0.1323, allocations: 157.6 kB / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.1324, allocations: 15.81 kB / 359.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004407/0.1328, allocations: 219.7 kB / 359.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.1328, allocations: 4.109 kB / 359.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1328, allocations: 3.938 kB / 359.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1328, allocations: 4 kB / 359.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000254/0.1331, allocations: 269.4 kB / 359.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1331, allocations: 0 / 359.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.1332, allocations: 23.92 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.1332, allocations: 0 / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.1333, allocations: 8 kB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1333, allocations: 0 / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1333, allocations: 0 / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003912/0.1337, allocations: 241.6 kB / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.746e-05/0.1337, allocations: 92.92 kB / 359.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.1338, allocations: 11.92 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.1339, allocations: 23.98 kB / 360 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.186e-05/0.134, allocations: 23.91 kB / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.134, allocations: 4 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001166/0.1341, allocations: 144.6 kB / 360.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1341, allocations: 0 / 360.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.1344, allocations: 39.88 kB / 360.2 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: 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.0001587/0.1346, allocations: 109.9 kB / 360.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003642/0.1349, allocations: 183.8 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.135, allocations: 0 / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.1351, allocations: 92.27 kB / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.1355, allocations: 35.97 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007143/0.1362, allocations: 443 kB / 361 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.1366, allocations: 0.7397 MB / 361.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.1367, allocations: 41.45 kB / 361.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.24e-05/0.1367, allocations: 15.44 kB / 361.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1367, allocations: 4 kB / 361.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of Templates: time 0.004928/0.1417, allocations: 1.883 MB / 363.7 MB, free: 7.125 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches