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.001072/0.001072, allocations: 110.5 kB / 17.06 MB, free: 6.023 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.001039/0.001039, allocations: 191 kB / 18 MB, free: 5.105 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.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 47.94 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3363, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003261/0.3397, allocations: 1.874 MB / 402.6 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.3409, allocations: 0.5804 MB / 403.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.341, allocations: 4 kB / 403.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.3411, allocations: 27.67 kB / 403.2 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.3413, allocations: 43.59 kB / 403.2 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.3416, allocations: 63.88 kB / 403.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002288/0.3418, allocations: 167.4 kB / 403.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.342, allocations: 69.64 kB / 403.5 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.3422, allocations: 71.64 kB / 403.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.3423, allocations: 75.62 kB / 403.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.3424, allocations: 12 kB / 403.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.564e-05/0.3424, allocations: 27.98 kB / 403.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.783e-05/0.3426, allocations: 51.77 kB / 403.8 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.3427, allocations: 79.48 kB / 403.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.3429, allocations: 180.7 kB / 404 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3429, allocations: 0 / 404 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.05e-06/0.343, allocations: 4 kB / 404 MB, free: 5.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.343, allocations: 3.938 kB / 404 MB, free: 5.559 MB / 318.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.0008614/0.3438, allocations: 0.5024 MB / 404.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.3439, allocations: 12.03 kB / 404.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.3439, allocations: 24.66 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.3442, allocations: 243.6 kB / 404.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.3442, allocations: 12.66 kB / 404.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.3443, allocations: 15.94 kB / 404.8 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.3446, allocations: 191.8 kB / 405 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.3446, allocations: 4 kB / 405 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.3447, allocations: 8 kB / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.3447, allocations: 4 kB / 405 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/0.345, allocations: 147.8 kB / 405.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.3461, allocations: 0.7778 MB / 406 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002968/0.3464, allocations: 157 kB / 406.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.3465, allocations: 81.8 kB / 406.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.958e-05/0.3466, allocations: 4 kB / 406.2 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.3469, allocations: 141.2 kB / 406.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.3469, allocations: 0 / 406.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005453/0.3474, allocations: 253.3 kB / 406.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.3475, allocations: 89.08 kB / 406.7 MB, free: 2.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.3477, allocations: 202.9 kB / 406.9 MB, free: 2.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.3477, allocations: 29.7 kB / 406.9 MB, free: 2.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.967e-05/0.3478, allocations: 144.1 kB / 407 MB, free: 2.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.615e-05/0.3478, allocations: 47.36 kB / 407.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-05/0.3479, allocations: 41.7 kB / 407.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.348, allocations: 338.7 kB / 407.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.3482, allocations: 72.06 kB / 407.5 MB, free: 1.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.3484, allocations: 130.4 kB / 407.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003143/0.3487, allocations: 206.6 kB / 407.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3487, allocations: 4 kB / 407.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003853/0.3491, allocations: 237.2 kB / 408.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3491, allocations: 4 kB / 408.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3491, allocations: 4 kB / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3492, allocations: 4 kB / 408.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.3493, allocations: 35.91 kB / 408.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.3493, allocations: 4.188 kB / 408.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.3495, allocations: 35.81 kB / 408.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.3495, allocations: 4 kB / 408.2 MB, free: 1.086 MB / 318.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.0001986/0.3497, allocations: 146.2 kB / 408.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.3498, allocations: 19.8 kB / 408.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004389/0.3502, allocations: 211.6 kB / 408.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.3502, allocations: 8 kB / 408.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3502, allocations: 4 kB / 408.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3502, allocations: 0 / 408.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002734/0.3505, allocations: 273.4 kB / 408.8 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3505, allocations: 0 / 408.8 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.3507, allocations: 19.98 kB / 408.8 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3507, allocations: 3.984 kB / 408.9 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.3507, allocations: 0 / 408.9 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3507, allocations: 4.078 kB / 408.9 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3507, allocations: 3.984 kB / 408.9 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000382/0.3511, allocations: 236.8 kB / 409.1 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.566e-05/0.3512, allocations: 96.83 kB / 409.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.3512, allocations: 0 / 409.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.3514, allocations: 19.97 kB / 409.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.3514, allocations: 16.08 kB / 409.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.3515, allocations: 11.94 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001243/0.3516, allocations: 148.5 kB / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3516, allocations: 0 / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.3519, allocations: 39.94 kB / 409.4 MB, free: 15.75 MB / 334.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.0001557/0.352, allocations: 115.1 kB / 409.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003874/0.3524, allocations: 176 kB / 409.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3524, allocations: 3.938 kB / 409.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.3526, allocations: 79.89 kB / 409.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.3529, allocations: 43.91 kB / 409.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00063/0.3536, allocations: 365.2 kB / 410.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.3539, allocations: 0.7359 MB / 410.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.354, allocations: 37.52 kB / 411 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.3541, allocations: 23.44 kB / 411 MB, free: 14.12 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3541, allocations: 0 / 411 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Templates: time 0.005578/0.3597, allocations: 2.122 MB / 413.1 MB, free: 12.03 MB / 334.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