Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.164/2.164, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002366/0.002366, allocations: 47.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3498, allocations: 53.36 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004464/0.3542, allocations: 1.848 MB / 434.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.3562, allocations: 0.6155 MB / 434.8 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.3563, allocations: 7.938 kB / 434.8 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.3565, allocations: 23.67 kB / 434.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.3567, allocations: 43.66 kB / 434.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000437/0.3572, allocations: 75.84 kB / 434.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003471/0.3575, allocations: 175.3 kB / 435.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002271/0.3577, allocations: 44.38 kB / 435.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.358, allocations: 83.62 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.3582, allocations: 79.61 kB / 435.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.057e-05/0.3582, allocations: 12 kB / 435.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.3583, allocations: 27.98 kB / 435.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.495e-05/0.3584, allocations: 47.84 kB / 435.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.3586, allocations: 63.61 kB / 435.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.3589, allocations: 197.9 kB / 435.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3589, allocations: 0 / 435.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.648e-06/0.3589, allocations: 4 kB / 435.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.359, allocations: 0 / 435.6 MB, free: 3.383 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.00133/0.3603, allocations: 449.4 kB / 436.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.3603, allocations: 8.031 kB / 436.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.3606, allocations: 40.78 kB / 436.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.3609, allocations: 179.4 kB / 436.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.361, allocations: 8.656 kB / 436.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.361, allocations: 16.38 kB / 436.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.3615, allocations: 204 kB / 436.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3616, allocations: 0 / 436.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.3616, allocations: 8 kB / 436.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.472e-05/0.3616, allocations: 4 kB / 436.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/0.3621, allocations: 155.8 kB / 436.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.3636, allocations: 0.6801 MB / 437.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.3641, allocations: 157 kB / 437.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.3643, allocations: 81.73 kB / 437.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.822e-05/0.3643, allocations: 4 kB / 437.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003708/0.3647, allocations: 141 kB / 437.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.013e-06/0.3647, allocations: 3.938 kB / 437.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008425/0.3656, allocations: 257.7 kB / 438 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.3656, allocations: 81.11 kB / 438.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.3659, allocations: 202.8 kB / 438.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.3659, allocations: 33.7 kB / 438.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.3661, allocations: 148.3 kB / 438.5 MB, free: 376 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.281e-05/0.3662, allocations: 47.62 kB / 438.5 MB, free: 328 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.3663, allocations: 41.7 kB / 438.5 MB, free: 280 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.3665, allocations: 330.8 kB / 438.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.3667, allocations: 67.95 kB / 438.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.367, allocations: 124.5 kB / 439.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.3675, allocations: 203.3 kB / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3675, allocations: 0 / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000674/0.3682, allocations: 249.4 kB / 439.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3682, allocations: 12 kB / 439.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3682, allocations: 0 / 439.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.3682, allocations: 4 kB / 439.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.3685, allocations: 35.92 kB / 439.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.3685, allocations: 7.984 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/0.3687, allocations: 23.88 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.3687, allocations: 12 kB / 439.6 MB, free: 15.16 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.0002058/0.369, allocations: 145.7 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.565e-05/0.369, allocations: 19.91 kB / 439.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006532/0.3697, allocations: 215 kB / 440 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3697, allocations: 3.938 kB / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3697, allocations: 0 / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.3697, allocations: 96 / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003582/0.37, allocations: 201.1 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.37, allocations: 3.938 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.3702, allocations: 27.92 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.3702, allocations: 0 / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.3702, allocations: 4 kB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.425e-06/0.3702, allocations: 7.984 kB / 440.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3702, allocations: 0 / 440.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005856/0.3708, allocations: 221.8 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.3709, allocations: 23.8 kB / 440.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/0.3709, allocations: 7.984 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.3711, allocations: 23.91 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.472e-05/0.3712, allocations: 7.984 kB / 440.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.3712, allocations: 15.98 kB / 440.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001961/0.3714, allocations: 140.6 kB / 440.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3714, allocations: 0 / 440.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004746/0.3719, allocations: 39.89 kB / 440.7 MB, free: 14.01 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.0002024/0.3721, allocations: 101.8 kB / 440.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005831/0.3727, allocations: 163.8 kB / 440.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3727, allocations: 384 / 440.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.3729, allocations: 87.88 kB / 441 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005227/0.3735, allocations: 47.84 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009877/0.3745, allocations: 362 kB / 441.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/0.3746, allocations: 132.9 kB / 441.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001635/0.3748, allocations: 33.45 kB / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.733e-05/0.3749, allocations: 19.38 kB / 441.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3749, allocations: 0 / 441.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Templates: time 0.008698/0.3836, allocations: 2.435 MB / 444 MB, free: 10.64 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 6.786004082998261]