Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001837/0.001837, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.002369/0.002369, allocations: 216.5 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.511/1.511, allocations: 230.4 MB / 258.1 MB, free: 8.152 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 75.95 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2454, allocations: 53.31 MB / 432 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003239/0.2486, allocations: 1.907 MB / 433.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.2498, allocations: 0.6505 MB / 434.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.489e-05/0.2499, allocations: 7.938 kB / 434.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.25, allocations: 31.67 kB / 434.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001389/0.2501, allocations: 35.66 kB / 434.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.2504, allocations: 75.84 kB / 434.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002416/0.2507, allocations: 175.3 kB / 434.9 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.2508, allocations: 48.22 kB / 435 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.251, allocations: 79.64 kB / 435 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.2511, allocations: 83.61 kB / 435.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.2512, allocations: 12 kB / 435.1 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.806e-05/0.2512, allocations: 20 kB / 435.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.407e-05/0.2513, allocations: 47.83 kB / 435.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.657e-05/0.2514, allocations: 87.47 kB / 435.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.2517, allocations: 192.6 kB / 435.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2517, allocations: 4 kB / 435.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2517, allocations: 0 / 435.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.2517, allocations: 0 / 435.5 MB, free: 3.922 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.0009101/0.2526, allocations: 0.5181 MB / 436 MB, free: 3.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.2526, allocations: 8.031 kB / 436 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.2528, allocations: 36.78 kB / 436 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.2531, allocations: 240.4 kB / 436.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.2531, allocations: 12.66 kB / 436.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.2531, allocations: 12.38 kB / 436.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/0.2535, allocations: 208.1 kB / 436.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.2535, allocations: 3.938 kB / 436.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.2535, allocations: 11.94 kB / 436.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.2535, allocations: 4 kB / 436.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003032/0.2539, allocations: 143.8 kB / 436.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.255, allocations: 0.7741 MB / 437.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003289/0.2553, allocations: 161 kB / 437.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.2555, allocations: 73.8 kB / 437.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.155e-05/0.2555, allocations: 8.141 kB / 437.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.2558, allocations: 145 kB / 437.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.2558, allocations: 0 / 437.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006001/0.2564, allocations: 257.5 kB / 438.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.2564, allocations: 81.11 kB / 438.1 MB, free: 1.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.2567, allocations: 211.1 kB / 438.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.2567, allocations: 33.7 kB / 438.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.2568, allocations: 144.2 kB / 438.5 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.2568, allocations: 47.64 kB / 438.6 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.151e-05/0.2569, allocations: 41.7 kB / 438.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.2571, allocations: 326.8 kB / 438.9 MB, free: 204 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.2572, allocations: 71.95 kB / 439 MB, free: 132 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.2574, allocations: 129.7 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.2578, allocations: 219.1 kB / 439.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2578, allocations: 0 / 439.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004305/0.2582, allocations: 237.3 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.2582, allocations: 8.188 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.2582, allocations: 7.984 kB / 439.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.2583, allocations: 0 / 439.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.2584, allocations: 35.92 kB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2584, allocations: 112 / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.2586, allocations: 39.8 kB / 439.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.2586, allocations: 8 kB / 439.7 MB, free: 15.41 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.0001434/0.2588, allocations: 145.7 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/0.2588, allocations: 23.91 kB / 439.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004415/0.2592, allocations: 210.9 kB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.2592, allocations: 4 kB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2592, allocations: 0 / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2592, allocations: 0 / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/0.2595, allocations: 277.4 kB / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2595, allocations: 0 / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.2596, allocations: 31.89 kB / 440.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2596, allocations: 4 kB / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.2597, allocations: 0 / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.2597, allocations: 4 kB / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2597, allocations: 0 / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004192/0.2601, allocations: 225.7 kB / 440.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.972e-05/0.2602, allocations: 96.95 kB / 440.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.2602, allocations: 4 kB / 440.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.2603, allocations: 19.97 kB / 440.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.437e-05/0.2604, allocations: 19.92 kB / 440.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2604, allocations: 7.984 kB / 440.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.2605, allocations: 148.6 kB / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2605, allocations: 96 / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.2608, allocations: 43.89 kB / 440.9 MB, free: 14.06 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.0001545/0.2609, allocations: 106.6 kB / 441 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003984/0.2613, allocations: 169 kB / 441.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2613, allocations: 0 / 441.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.2615, allocations: 75.89 kB / 441.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.2619, allocations: 44.98 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006742/0.2625, allocations: 385 kB / 441.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.2629, allocations: 0.7357 MB / 442.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.263, allocations: 37.52 kB / 442.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.2631, allocations: 15.44 kB / 442.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2631, allocations: 0 / 442.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Templates: time 0.005698/0.2688, allocations: 2.18 MB / 444.6 MB, free: 10.29 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.3842329448089]