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.001376/0.001376, allocations: 110.5 kB / 17.28 MB, free: 6.074 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.001221/0.001221, allocations: 189.4 kB / 18.21 MB, free: 5.168 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.306/1.306, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001036, allocations: 42.23 kB / 300.8 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.08962, allocations: 49.45 MB / 350.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003304/0.09297, allocations: 1.914 MB / 352.1 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.09416, allocations: 0.5727 MB / 352.7 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.09433, allocations: 4 kB / 352.7 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.09449, allocations: 19.8 kB / 352.7 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.0947, allocations: 27.78 kB / 352.8 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.095, allocations: 55.91 kB / 352.8 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.09525, allocations: 171.3 kB / 353 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.09542, allocations: 65.64 kB / 353.1 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.09557, allocations: 67.7 kB / 353.1 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.09572, allocations: 79.56 kB / 353.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.09576, allocations: 12 kB / 353.2 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.86e-05/0.09584, allocations: 23.98 kB / 353.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.775e-05/0.09594, allocations: 47.83 kB / 353.3 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.227e-05/0.09604, allocations: 79.48 kB / 353.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.09623, allocations: 128 kB / 353.5 MB, free: 1.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.09625, allocations: 0 / 353.5 MB, free: 1.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.09626, allocations: 3.938 kB / 353.5 MB, free: 1.477 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.09627, allocations: 3.938 kB / 353.5 MB, free: 1.473 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.0009027/0.09717, allocations: 0.4989 MB / 354 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.09722, allocations: 12.03 kB / 354 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.09729, allocations: 24.66 kB / 354 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.09759, allocations: 243.7 kB / 354.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.09762, allocations: 12.66 kB / 354.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.09766, allocations: 16.12 kB / 354.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.09803, allocations: 199.8 kB / 354.5 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.09805, allocations: 0 / 354.5 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.09808, allocations: 8 kB / 354.5 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.275e-05/0.09811, allocations: 8 kB / 354.5 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.09842, allocations: 147.8 kB / 354.6 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.09954, allocations: 0.77 MB / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/0.09988, allocations: 173 kB / 355.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.1, allocations: 77.81 kB / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.1001, allocations: 0 / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.1004, allocations: 160.9 kB / 355.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.774e-06/0.1004, allocations: 0 / 355.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005527/0.1009, allocations: 253.6 kB / 356.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.101, allocations: 85.05 kB / 356.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.1012, allocations: 199 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.1012, allocations: 33.7 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.088e-05/0.1013, allocations: 144.1 kB / 356.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.342e-05/0.1014, allocations: 43.44 kB / 356.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.302e-05/0.1015, allocations: 45.7 kB / 356.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1016, allocations: 334.7 kB / 356.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.1018, allocations: 67.95 kB / 357 MB, free: 13.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.1019, allocations: 126.8 kB / 357.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.1023, allocations: 202.7 kB / 357.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1023, allocations: 0 / 357.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003995/0.1027, allocations: 241.1 kB / 357.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1027, allocations: 4 kB / 357.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1027, allocations: 4 kB / 357.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.1027, allocations: 4.281 kB / 357.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.1029, allocations: 43.86 kB / 357.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.1029, allocations: 0 / 357.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.1031, allocations: 27.81 kB / 357.6 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.1031, allocations: 12 kB / 357.6 MB, free: 12.99 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.000123/0.1032, allocations: 145.6 kB / 357.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.1033, allocations: 19.81 kB / 357.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004152/0.1037, allocations: 215.6 kB / 358 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1037, allocations: 0 / 358 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1037, allocations: 4 kB / 358 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1037, allocations: 0 / 358 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002584/0.104, allocations: 273.4 kB / 358.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.104, allocations: 4 kB / 358.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.1041, allocations: 15.98 kB / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1041, allocations: 4 kB / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1041, allocations: 8 kB / 358.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1041, allocations: 0 / 358.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1042, allocations: 4 kB / 358.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003572/0.1045, allocations: 225.7 kB / 358.5 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.1046, allocations: 88.92 kB / 358.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.1046, allocations: 11.98 kB / 358.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.1048, allocations: 15.98 kB / 358.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.194e-05/0.1048, allocations: 23.91 kB / 358.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.1048, allocations: 8 kB / 358.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.105, allocations: 144.6 kB / 358.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.105, allocations: 0 / 358.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.1052, allocations: 43.78 kB / 358.9 MB, free: 11.65 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.0001568/0.1054, allocations: 107.1 kB / 359 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003866/0.1058, allocations: 195.7 kB / 359.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1058, allocations: 0 / 359.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.106, allocations: 83.89 kB / 359.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.1063, allocations: 47.16 kB / 359.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000685/0.107, allocations: 463.5 kB / 359.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.1073, allocations: 0.7358 MB / 360.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.684e-05/0.1074, allocations: 19.44 kB / 360.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1074, allocations: 4 kB / 360.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of Templates: time 0.004348/0.1117, allocations: 2.411 MB / 362.9 MB, free: 7.551 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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