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.001755/0.001755, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001984/0.001984, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.496/1.496, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3342, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003246/0.3375, allocations: 1.857 MB / 403.3 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3387, allocations: 0.5843 MB / 403.8 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.3388, allocations: 7.938 kB / 403.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.339, allocations: 23.67 kB / 403.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.3392, allocations: 31.72 kB / 403.9 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.3395, allocations: 71.81 kB / 404 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002493/0.3398, allocations: 167.4 kB / 404.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.34, allocations: 68.39 kB / 404.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.3401, allocations: 71.64 kB / 404.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.3403, allocations: 79.62 kB / 404.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.3403, allocations: 15.94 kB / 404.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.944e-05/0.3404, allocations: 23.98 kB / 404.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.994e-05/0.3405, allocations: 39.84 kB / 404.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.213e-05/0.3406, allocations: 83.47 kB / 404.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.3409, allocations: 188.7 kB / 404.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3409, allocations: 0 / 404.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3409, allocations: 4 kB / 404.7 MB, free: 5.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.3409, allocations: 3.938 kB / 404.7 MB, free: 5.555 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.0009602/0.3419, allocations: 0.5025 MB / 405.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3419, allocations: 8.031 kB / 405.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.443e-05/0.342, allocations: 28.66 kB / 405.2 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.3423, allocations: 247.6 kB / 405.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.935e-05/0.3423, allocations: 8.656 kB / 405.5 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.3424, allocations: 19.94 kB / 405.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003574/0.3427, allocations: 195.8 kB / 405.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3427, allocations: 0 / 405.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.3428, allocations: 4 kB / 405.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.3428, allocations: 12 kB / 405.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000296/0.3431, allocations: 143.8 kB / 405.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.3442, allocations: 0.7739 MB / 406.6 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.3445, allocations: 157.1 kB / 406.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.3447, allocations: 81.8 kB / 406.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.301e-05/0.3448, allocations: 4 kB / 406.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.345, allocations: 145 kB / 407 MB, free: 3.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.345, allocations: 0 / 407 MB, free: 3.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005799/0.3456, allocations: 257.9 kB / 407.3 MB, free: 2.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.3457, allocations: 85.2 kB / 407.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.3459, allocations: 206.8 kB / 407.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.3459, allocations: 33.7 kB / 407.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.346, allocations: 148.1 kB / 407.7 MB, free: 2.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/0.3461, allocations: 47.36 kB / 407.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.097e-05/0.3462, allocations: 41.7 kB / 407.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3463, allocations: 330.8 kB / 408.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.3465, allocations: 71.95 kB / 408.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.3467, allocations: 126.8 kB / 408.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.347, allocations: 202.7 kB / 408.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.347, allocations: 0 / 408.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004083/0.3474, allocations: 249.2 kB / 408.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3475, allocations: 4 kB / 408.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3475, allocations: 4 kB / 408.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.3475, allocations: 4 kB / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.3477, allocations: 31.97 kB / 408.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.3477, allocations: 3.938 kB / 408.8 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.3478, allocations: 35.81 kB / 408.9 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.3479, allocations: 8.188 kB / 408.9 MB, free: 1.07 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.0001409/0.348, allocations: 142.3 kB / 409 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.3481, allocations: 19.8 kB / 409 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004311/0.3485, allocations: 210.8 kB / 409.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3485, allocations: 4 kB / 409.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3485, allocations: 0 / 409.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.3485, allocations: 0 / 409.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.3488, allocations: 277.4 kB / 409.5 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3488, allocations: 0 / 409.5 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.349, allocations: 27.98 kB / 409.5 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.349, allocations: 3.984 kB / 409.5 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.349, allocations: 0 / 409.5 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.349, allocations: 4 kB / 409.5 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.349, allocations: 0 / 409.5 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.3494, allocations: 229.5 kB / 409.8 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.71e-05/0.3495, allocations: 100.8 kB / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.3495, allocations: 0 / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.3497, allocations: 15.97 kB / 409.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.042e-05/0.3497, allocations: 15.98 kB / 409.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.3498, allocations: 11.94 kB / 409.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001266/0.3499, allocations: 148.5 kB / 410.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3499, allocations: 4 kB / 410.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002573/0.3502, allocations: 35.94 kB / 410.1 MB, free: 15.74 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.0001547/0.3503, allocations: 107.2 kB / 410.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.3507, allocations: 183.2 kB / 410.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3507, allocations: 0 / 410.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.3509, allocations: 84.81 kB / 410.5 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.000343/0.3513, allocations: 44.25 kB / 410.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007065/0.352, allocations: 402.9 kB / 410.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.3523, allocations: 0.7319 MB / 411.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6e-05/0.3524, allocations: 27.42 kB / 411.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3524, allocations: 0 / 411.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Templates: time 0.004421/0.3568, allocations: 2.42 MB / 414.1 MB, free: 11.7 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/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