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.0013/0.0013, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.001393/0.001393, allocations: 158.8 kB / 23.95 MB, free: 4.152 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.479/1.479, allocations: 177 MB / 204.1 MB, free: 9.156 MB / 190.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 1.292e-06/1.292e-06, allocations: 0 / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.368e-05, allocations: 2.281 kB / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003057/0.003081, allocations: 1.827 MB / 326.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.004485, allocations: 0.6329 MB / 327.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.004603, allocations: 10.03 kB / 327.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.004743, allocations: 24.09 kB / 327.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001713/0.004915, allocations: 40.09 kB / 327.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.005284, allocations: 85.2 kB / 327.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003053/0.005589, allocations: 172 kB / 327.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.005772, allocations: 50.53 kB / 327.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002422/0.006015, allocations: 111.5 kB / 327.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.006173, allocations: 61.19 kB / 328 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.994e-05/0.006213, allocations: 12.03 kB / 328 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.375e-05/0.006306, allocations: 25.92 kB / 328 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.496e-05/0.006401, allocations: 42.72 kB / 328.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.274e-05/0.006494, allocations: 53.05 kB / 328.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.006806, allocations: 201.8 kB / 328.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.00681, allocations: 1.375 kB / 328.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006811, allocations: 0 / 328.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.006821, allocations: 0 / 328.3 MB, free: 14.39 MB / 302.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.0009477/0.007769, allocations: 451.5 kB / 328.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.007805, allocations: 13.34 kB / 328.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.00797, allocations: 32.02 kB / 328.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.008258, allocations: 187.9 kB / 329 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.008274, allocations: 9.969 kB / 329 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.008307, allocations: 15.14 kB / 329 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.008696, allocations: 197 kB / 329.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.00871, allocations: 4.125 kB / 329.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.00873, allocations: 6.5 kB / 329.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.854e-05/0.008759, allocations: 14.12 kB / 329.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/0.009102, allocations: 146.1 kB / 329.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.01029, allocations: 0.6794 MB / 330.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.01063, allocations: 155.7 kB / 330.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.01079, allocations: 70.36 kB / 330.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.01082, allocations: 8.984 kB / 330.3 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.01109, allocations: 147.1 kB / 330.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.01109, allocations: 0 / 330.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000634/0.01173, allocations: 254.8 kB / 330.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.01179, allocations: 83.67 kB / 330.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.012, allocations: 204 kB / 331 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.01204, allocations: 32.73 kB / 331 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.01215, allocations: 146.4 kB / 331.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.01219, allocations: 46.3 kB / 331.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.174e-05/0.01227, allocations: 44.97 kB / 331.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.01243, allocations: 330 kB / 331.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.01259, allocations: 72.42 kB / 331.6 MB, free: 12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.01279, allocations: 124.1 kB / 331.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.01313, allocations: 203.6 kB / 331.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01313, allocations: 0 / 331.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004743/0.01361, allocations: 245.5 kB / 332.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.01362, allocations: 9.938 kB / 332.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.01363, allocations: 2.375 kB / 332.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.01365, allocations: 6.188 kB / 332.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.01381, allocations: 36.36 kB / 332.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.01382, allocations: 3.219 kB / 332.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.01399, allocations: 28.45 kB / 332.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.014, allocations: 10.81 kB / 332.3 MB, free: 11.6 MB / 302.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.0001382/0.01414, allocations: 140 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.237e-05/0.01418, allocations: 20.09 kB / 332.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004625/0.01464, allocations: 212.4 kB / 332.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.01464, allocations: 2.156 kB / 332.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.01465, allocations: 1.094 kB / 332.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.01465, allocations: 0 / 332.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002352/0.01489, allocations: 193.9 kB / 332.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.01489, allocations: 1.234 kB / 332.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.015, allocations: 24.17 kB / 332.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.015, allocations: 1.156 kB / 332.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.01502, allocations: 9.188 kB / 332.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.01503, allocations: 5.312 kB / 332.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.01503, allocations: 8 kB / 332.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.01543, allocations: 221.6 kB / 333.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.01546, allocations: 17.64 kB / 333.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.01549, allocations: 17.11 kB / 333.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.01563, allocations: 14.27 kB / 333.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.606e-05/0.0157, allocations: 17.34 kB / 333.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.01571, allocations: 7.766 kB / 333.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.01583, allocations: 139.2 kB / 333.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01583, allocations: 4 kB / 333.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002714/0.0161, allocations: 48.97 kB / 333.4 MB, free: 10.82 MB / 302.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.01626, allocations: 101.3 kB / 333.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003955/0.01665, allocations: 174.5 kB / 333.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01665, allocations: 0 / 333.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.01683, allocations: 76.31 kB / 333.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.01718, allocations: 47.36 kB / 333.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006702/0.01785, allocations: 364.9 kB / 334.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.01797, allocations: 126.5 kB / 334.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.01807, allocations: 33.17 kB / 334.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.218e-05/0.01813, allocations: 21.91 kB / 334.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01813, allocations: 0 / 334.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Templates: time 0.005775/0.0239, allocations: 2.21 MB / 336.5 MB, free: 9.094 MB / 302.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.202722184360027]