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.001226/0.001226, allocations: 103 kB / 16.51 MB, free: 6.645 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.001174/0.001174, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.39/1.39, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 50.7 kB / 299.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08176/0.0828, allocations: 49.44 MB / 349.4 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00289/0.08572, allocations: 1.918 MB / 351.3 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.08678, allocations: 0.5804 MB / 351.9 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.08691, allocations: 0 / 351.9 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.08705, allocations: 23.8 kB / 351.9 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.08719, allocations: 23.78 kB / 351.9 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.08744, allocations: 55.89 kB / 352 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001985/0.08765, allocations: 159.3 kB / 352.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.08781, allocations: 65.64 kB / 352.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.08794, allocations: 71.64 kB / 352.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.0881, allocations: 71.62 kB / 352.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.08814, allocations: 12 kB / 352.4 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.5e-05/0.08821, allocations: 15.98 kB / 352.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.997e-05/0.0883, allocations: 43.83 kB / 352.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.345e-05/0.08839, allocations: 75.48 kB / 352.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001964/0.08859, allocations: 159.6 kB / 352.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.0886, allocations: 3.938 kB / 352.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.08861, allocations: 4 kB / 352.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.08862, allocations: 0 / 352.6 MB, free: 1.602 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.0008641/0.08949, allocations: 0.5067 MB / 353.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.08953, allocations: 8.031 kB / 353.2 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.0896, allocations: 24.66 kB / 353.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.08985, allocations: 235.7 kB / 353.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.08988, allocations: 8.656 kB / 353.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.08991, allocations: 20.12 kB / 353.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003712/0.09029, allocations: 203.7 kB / 353.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.09031, allocations: 0 / 353.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.09033, allocations: 4 kB / 353.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/0.09036, allocations: 8 kB / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.09066, allocations: 147.7 kB / 353.8 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.09172, allocations: 0.7817 MB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.09204, allocations: 157.1 kB / 354.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.0922, allocations: 77.75 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.09225, allocations: 12.14 kB / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.0925, allocations: 152 kB / 355 MB, free: 15.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.09251, allocations: 0 / 355 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005607/0.09307, allocations: 253.3 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.09313, allocations: 81.11 kB / 355.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.09331, allocations: 203 kB / 355.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.09334, allocations: 29.7 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.941e-05/0.09343, allocations: 140.1 kB / 355.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.09348, allocations: 43.45 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.816e-05/0.09355, allocations: 41.7 kB / 355.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.09367, allocations: 330.8 kB / 356.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.09383, allocations: 71.95 kB / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.09402, allocations: 130.8 kB / 356.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.09435, allocations: 199.3 kB / 356.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.09436, allocations: 0 / 356.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00042/0.09478, allocations: 261.1 kB / 356.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.09481, allocations: 11.12 kB / 356.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.09482, allocations: 0 / 356.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.09484, allocations: 4 kB / 356.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.09501, allocations: 31.92 kB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.09503, allocations: 4 kB / 356.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.0952, allocations: 31.81 kB / 356.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.09522, allocations: 7.984 kB / 356.8 MB, free: 13.12 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.0001269/0.09535, allocations: 153.9 kB / 357 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.012e-05/0.09539, allocations: 23.75 kB / 357 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000423/0.09582, allocations: 210.9 kB / 357.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.09584, allocations: 4 kB / 357.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.09585, allocations: 0 / 357.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.09585, allocations: 0 / 357.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.0961, allocations: 273.4 kB / 357.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.09612, allocations: 0 / 357.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.09624, allocations: 23.98 kB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.09625, allocations: 0 / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.09627, allocations: 4 kB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.09628, allocations: 0 / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.09628, allocations: 0 / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003817/0.09667, allocations: 237.5 kB / 357.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.898e-05/0.09673, allocations: 92.92 kB / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.09676, allocations: 3.984 kB / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.09691, allocations: 19.98 kB / 357.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.83e-05/0.09697, allocations: 11.97 kB / 357.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.09699, allocations: 4 kB / 357.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001166/0.09711, allocations: 144.6 kB / 358 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09712, allocations: 0 / 358 MB, free: 11.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.09738, allocations: 47.78 kB / 358 MB, free: 11.79 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.0001232/0.09751, allocations: 115.1 kB / 358.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003594/0.09788, allocations: 163.8 kB / 358.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.09789, allocations: 4 kB / 358.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.09808, allocations: 80.55 kB / 358.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.09844, allocations: 43.91 kB / 358.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006525/0.0991, allocations: 442.7 kB / 358.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.09939, allocations: 0.7397 MB / 359.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.09951, allocations: 33.52 kB / 359.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.962e-05/0.09957, allocations: 19.42 kB / 359.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09958, allocations: 4 kB / 359.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of Templates: time 0.004728/0.1043, allocations: 1.897 MB / 361.6 MB, free: 8.227 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