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.001719/0.001719, allocations: 116.5 kB / 18.45 MB, free: 4.562 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.00212/0.00212, allocations: 215.2 kB / 21.42 MB, free: 1.605 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 1.517/1.517, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.00158/0.00158, allocations: 47.92 kB / 374.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1156, allocations: 53.32 MB / 427.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003196/0.1188, allocations: 1.9 MB / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1201, allocations: 0.6622 MB / 430 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1202, allocations: 3.938 kB / 430 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.1203, allocations: 23.73 kB / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.1205, allocations: 35.66 kB / 430.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.1208, allocations: 79.78 kB / 430.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002696/0.121, allocations: 171.4 kB / 430.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.1212, allocations: 60.22 kB / 430.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1214, allocations: 75.64 kB / 430.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.1216, allocations: 83.61 kB / 430.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.1216, allocations: 12 kB / 430.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.521e-05/0.1217, allocations: 20 kB / 430.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.807e-05/0.1218, allocations: 43.83 kB / 430.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1219, allocations: 91.41 kB / 430.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003022/0.1222, allocations: 195 kB / 430.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1222, allocations: 8 kB / 430.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1222, allocations: 0 / 430.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1222, allocations: 0 / 430.9 MB, free: 0.8125 MB / 350.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.00098/0.1232, allocations: 0.5103 MB / 431.4 MB, free: 256 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.1232, allocations: 12.03 kB / 431.4 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.1234, allocations: 32.78 kB / 431.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2005/0.3239, allocations: 233.3 kB / 431.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.3239, allocations: 17.3 kB / 431.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.324, allocations: 11.72 kB / 431.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.3244, allocations: 197.2 kB / 431.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3244, allocations: 1.125 kB / 431.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.3244, allocations: 6.766 kB / 431.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.3245, allocations: 5.719 kB / 431.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00034/0.3248, allocations: 146.2 kB / 432.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.3258, allocations: 0.7813 MB / 432.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.3261, allocations: 156 kB / 433 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.3263, allocations: 70.95 kB / 433.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.3263, allocations: 4.172 kB / 433.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.3266, allocations: 150 kB / 433.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.3266, allocations: 2.875 kB / 433.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005432/0.3271, allocations: 254 kB / 433.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.3271, allocations: 90.34 kB / 433.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.3273, allocations: 201.4 kB / 433.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.3273, allocations: 31.55 kB / 433.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/0.3274, allocations: 141.2 kB / 433.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.3274, allocations: 47.45 kB / 434 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.478e-05/0.3275, allocations: 41.83 kB / 434 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.338e-05/0.3275, allocations: 337.2 kB / 434.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.3277, allocations: 66.12 kB / 434.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.3278, allocations: 124.2 kB / 434.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.3281, allocations: 204.2 kB / 434.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3281, allocations: 1.094 kB / 434.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003991/0.3285, allocations: 244.3 kB / 435 MB, free: 9.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3285, allocations: 9.312 kB / 435 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3285, allocations: 2.219 kB / 435 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.3285, allocations: 3.219 kB / 435 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.3287, allocations: 41.58 kB / 435 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.3287, allocations: 3.719 kB / 435 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.3289, allocations: 29.98 kB / 435.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.3289, allocations: 10.19 kB / 435.1 MB, free: 9.582 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.0001023/0.329, allocations: 151.2 kB / 435.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.224e-05/0.329, allocations: 21.31 kB / 435.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004241/0.3295, allocations: 213.1 kB / 435.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.3295, allocations: 4.703 kB / 435.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3295, allocations: 1.688 kB / 435.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3295, allocations: 1.125 kB / 435.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.3297, allocations: 267.8 kB / 435.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3297, allocations: 2.734 kB / 435.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.3298, allocations: 23.69 kB / 435.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3298, allocations: 5.281 kB / 435.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.3298, allocations: 6.203 kB / 435.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.3298, allocations: 4.844 kB / 435.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3298, allocations: 1.781 kB / 435.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003525/0.3302, allocations: 228.1 kB / 436 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.573e-05/0.3302, allocations: 101.7 kB / 436.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.3302, allocations: 1.5 kB / 436.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.3304, allocations: 24.03 kB / 436.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.789e-05/0.3304, allocations: 15.03 kB / 436.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.3304, allocations: 6.844 kB / 436.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.863e-05/0.3305, allocations: 143.3 kB / 436.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3305, allocations: 0 / 436.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00026/0.3308, allocations: 40.52 kB / 436.3 MB, free: 8.934 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.0001392/0.3309, allocations: 112.4 kB / 436.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003898/0.3313, allocations: 166.5 kB / 436.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3313, allocations: 0 / 436.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.3315, allocations: 80.78 kB / 436.7 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.3318, allocations: 34.89 kB / 436.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006704/0.3325, allocations: 416.6 kB / 437.1 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001696/0.3327, allocations: 0.7361 MB / 437.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.984e-05/0.3327, allocations: 19.75 kB / 437.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3327, allocations: 1.125 kB / 437.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of Templates: time 0.005262/0.338, allocations: 2.461 MB / 440.3 MB, free: 7.688 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 -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: 7.626813057984691]