Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001824/0.001824, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002077/0.002077, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1")
translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 59.89 kB / 378.8 MB, free: 2.801 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3106, allocations: 53.36 MB / 432.1 MB, free: 7.094 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003728/0.3143, allocations: 1.901 MB / 434 MB, free: 5.191 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001484/0.3158, allocations: 0.666 MB / 434.7 MB, free: 4.52 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.316, allocations: 7.938 kB / 434.7 MB, free: 4.512 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.3162, allocations: 23.73 kB / 434.7 MB, free: 4.488 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002473/0.3164, allocations: 43.59 kB / 434.8 MB, free: 4.445 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003858/0.3168, allocations: 79.84 kB / 434.8 MB, free: 4.367 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003482/0.3171, allocations: 167.3 kB / 435 MB, free: 4.203 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.3174, allocations: 44.58 kB / 435 MB, free: 4.156 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.3176, allocations: 83.62 kB / 435.1 MB, free: 4.074 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.3178, allocations: 83.61 kB / 435.2 MB, free: 3.992 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.895e-05/0.3178, allocations: 12 kB / 435.2 MB, free: 3.98 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.526e-05/0.3179, allocations: 27.98 kB / 435.2 MB, free: 3.953 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.318, allocations: 47.78 kB / 435.3 MB, free: 3.906 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.3181, allocations: 79.55 kB / 435.4 MB, free: 3.828 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000343/0.3185, allocations: 196.7 kB / 435.6 MB, free: 3.645 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3185, allocations: 0 / 435.6 MB, free: 3.645 MB / 334.1 MB
Notification: Performance of FrontEnd: time 3.657e-06/0.3185, allocations: 4 kB / 435.6 MB, free: 3.641 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.327e-06/0.3185, allocations: 0 / 435.6 MB, free: 3.641 MB / 334.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.00114/0.3196, allocations: 453.4 kB / 436 MB, free: 3.164 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3197, allocations: 8.031 kB / 436 MB, free: 3.156 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.3198, allocations: 32.78 kB / 436 MB, free: 3.125 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.3202, allocations: 174.8 kB / 436.2 MB, free: 2.93 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.3202, allocations: 16.64 kB / 436.2 MB, free: 2.914 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.289e-05/0.3202, allocations: 16.38 kB / 436.2 MB, free: 2.898 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005589/0.3208, allocations: 207.2 kB / 436.5 MB, free: 2.68 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3208, allocations: 3.938 kB / 436.5 MB, free: 2.676 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.3208, allocations: 4 kB / 436.5 MB, free: 2.672 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.879e-05/0.3208, allocations: 8 kB / 436.5 MB, free: 2.664 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000446/0.3213, allocations: 139.8 kB / 436.6 MB, free: 2.527 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.3226, allocations: 0.742 MB / 437.3 MB, free: 1.73 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.323, allocations: 172.9 kB / 437.5 MB, free: 1.543 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3232, allocations: 65.81 kB / 437.6 MB, free: 1.473 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.951e-05/0.3233, allocations: 4 kB / 437.6 MB, free: 1.469 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003319/0.3236, allocations: 149 kB / 437.7 MB, free: 1.305 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.3236, allocations: 0 / 437.7 MB, free: 1.305 MB / 334.1 MB
Notification: Performance of matching and sorting (n=15): time 0.0007227/0.3243, allocations: 262.3 kB / 438 MB, free: 1.043 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/0.3244, allocations: 85.05 kB / 438.1 MB, free: 0.9414 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.3246, allocations: 203.1 kB / 438.3 MB, free: 0.7344 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.3247, allocations: 33.7 kB / 438.3 MB, free: 0.6953 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.3248, allocations: 148.2 kB / 438.4 MB, free: 0.5469 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.3248, allocations: 47.62 kB / 438.5 MB, free: 0.5 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.019e-05/0.3249, allocations: 45.7 kB / 438.5 MB, free: 460 kB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001831/0.3251, allocations: 326.8 kB / 438.9 MB, free: 124 kB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.3253, allocations: 71.95 kB / 438.9 MB, free: 52 kB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002694/0.3255, allocations: 129.9 kB / 439.1 MB, free: 15.9 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.3259, allocations: 206.6 kB / 439.3 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3259, allocations: 0 / 439.3 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004569/0.3264, allocations: 241.3 kB / 439.5 MB, free: 15.43 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3264, allocations: 4 kB / 439.5 MB, free: 15.43 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3264, allocations: 4 kB / 439.5 MB, free: 15.43 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.3264, allocations: 12.28 kB / 439.5 MB, free: 15.41 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.3266, allocations: 39.86 kB / 439.5 MB, free: 15.38 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3266, allocations: 4 kB / 439.6 MB, free: 15.37 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.3267, allocations: 27.86 kB / 439.6 MB, free: 15.34 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.3268, allocations: 8 kB / 439.6 MB, free: 15.34 MB / 350.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.0001542/0.3269, allocations: 145.7 kB / 439.7 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.3269, allocations: 16 kB / 439.7 MB, free: 15.17 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004704/0.3274, allocations: 218.8 kB / 440 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.3274, allocations: 4 kB / 440 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3274, allocations: 0 / 440 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3274, allocations: 0 / 440 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.3277, allocations: 248.4 kB / 440.2 MB, free: 14.66 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3277, allocations: 0 / 440.2 MB, free: 14.66 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.3278, allocations: 23.92 kB / 440.2 MB, free: 14.64 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3279, allocations: 0 / 440.2 MB, free: 14.64 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.3279, allocations: 8 kB / 440.2 MB, free: 14.63 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3279, allocations: 4 kB / 440.2 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.3279, allocations: 0 / 440.2 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.3283, allocations: 225.7 kB / 440.5 MB, free: 14.38 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.058e-05/0.3283, allocations: 15.84 kB / 440.5 MB, free: 14.37 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.3284, allocations: 7.984 kB / 440.5 MB, free: 14.36 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.3285, allocations: 19.98 kB / 440.5 MB, free: 14.34 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.821e-05/0.3286, allocations: 19.91 kB / 440.5 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.3286, allocations: 4 kB / 440.5 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001404/0.3287, allocations: 152.6 kB / 440.7 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3287, allocations: 0 / 440.7 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0002754/0.329, allocations: 43.89 kB / 440.7 MB, free: 14.12 MB / 350.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.0001697/0.3292, allocations: 98 kB / 440.8 MB, free: 14.02 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004171/0.3296, allocations: 171.8 kB / 441 MB, free: 13.85 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3296, allocations: 0 / 441 MB, free: 13.85 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001824/0.3298, allocations: 80.52 kB / 441.1 MB, free: 13.77 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.3301, allocations: 51.98 kB / 441.1 MB, free: 13.72 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007983/0.3309, allocations: 365.8 kB / 441.5 MB, free: 13.34 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.3314, allocations: 0.7399 MB / 442.2 MB, free: 12.57 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001226/0.3315, allocations: 41.59 kB / 442.2 MB, free: 12.53 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.147e-05/0.3315, allocations: 19.38 kB / 442.3 MB, free: 12.51 MB / 350.1 MB
Notification: Performance of SimCode: time 3e-07/0.3315, allocations: 3.938 kB / 442.3 MB, free: 12.5 MB / 350.1 MB
Notification: Performance of Templates: time 0.006804/0.3383, allocations: 2.218 MB / 444.5 MB, free: 10.31 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.485961954109371]