Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 106 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 181.2 kB / 24.46 MB, free: 4.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002834/0.002834, allocations: 63.25 kB / 347.6 MB, free: 9.582 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4125, allocations: 49.16 MB / 396.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004607/0.4171, allocations: 1.865 MB / 398.7 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.4188, allocations: 0.6421 MB / 399.3 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.4189, allocations: 6.719 kB / 399.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.4191, allocations: 22.53 kB / 399.3 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002013/0.4193, allocations: 41.12 kB / 399.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.4197, allocations: 67.88 kB / 399.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003491/0.4201, allocations: 167.4 kB / 399.6 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.4203, allocations: 56.66 kB / 399.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.4205, allocations: 71.89 kB / 399.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002024/0.4207, allocations: 87.95 kB / 399.8 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.4207, allocations: 12.66 kB / 399.8 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.4208, allocations: 22.73 kB / 399.9 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.4209, allocations: 46.52 kB / 399.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.4211, allocations: 81 kB / 400 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.4215, allocations: 192.8 kB / 400.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4215, allocations: 0.6562 kB / 400.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4215, allocations: 0 / 400.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.4215, allocations: 1.062 kB / 400.2 MB, free: 7.328 MB / 318.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.001224/0.4227, allocations: 444.2 kB / 400.6 MB, free: 6.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.124e-05/0.4228, allocations: 17.45 kB / 400.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.015e-05/0.4229, allocations: 23.83 kB / 400.6 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.4232, allocations: 181.1 kB / 400.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.4232, allocations: 11.94 kB / 400.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.4233, allocations: 14.52 kB / 400.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.4238, allocations: 205.4 kB / 401 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.4238, allocations: 1.281 kB / 401 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.4239, allocations: 6.188 kB / 401.1 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.035e-05/0.4239, allocations: 5.984 kB / 401.1 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004875/0.4244, allocations: 146.1 kB / 401.2 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.4258, allocations: 0.7432 MB / 401.9 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004483/0.4263, allocations: 159.2 kB / 402.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.4265, allocations: 73.95 kB / 402.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.504e-05/0.4266, allocations: 4.75 kB / 402.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.4269, allocations: 144.7 kB / 402.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 3.507e-06/0.4269, allocations: 4 kB / 402.3 MB, free: 5.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008726/0.4278, allocations: 263.3 kB / 402.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.4279, allocations: 79.94 kB / 402.7 MB, free: 5.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.4281, allocations: 199.4 kB / 402.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.4282, allocations: 32.14 kB / 402.9 MB, free: 5.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.4283, allocations: 141.5 kB / 403 MB, free: 5.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.177e-05/0.4283, allocations: 49.7 kB / 403.1 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.884e-05/0.4284, allocations: 49.42 kB / 403.1 MB, free: 5.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.694e-05/0.4285, allocations: 329.8 kB / 403.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.4288, allocations: 68 kB / 403.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.429, allocations: 124.8 kB / 403.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004593/0.4295, allocations: 220.2 kB / 403.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.4295, allocations: 0 / 403.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006233/0.4301, allocations: 236.8 kB / 404.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.4301, allocations: 5.375 kB / 404.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4301, allocations: 2.812 kB / 404.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.4302, allocations: 2.438 kB / 404.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002634/0.4304, allocations: 43.86 kB / 404.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.4304, allocations: 6.125 kB / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/0.4307, allocations: 29.77 kB / 404.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.4307, allocations: 10.34 kB / 404.2 MB, free: 4.57 MB / 318.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.0001655/0.4309, allocations: 142 kB / 404.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/0.4309, allocations: 18.53 kB / 404.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006521/0.4316, allocations: 215 kB / 404.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.4316, allocations: 6 kB / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.4316, allocations: 0.5156 kB / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4316, allocations: 1.531 kB / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000375/0.432, allocations: 242 kB / 404.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.432, allocations: 0 / 404.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.4321, allocations: 24.09 kB / 404.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.4321, allocations: 1.656 kB / 404.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.4321, allocations: 6.672 kB / 404.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.4322, allocations: 1.375 kB / 404.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4322, allocations: 1.266 kB / 404.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005483/0.4327, allocations: 232 kB / 405 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.4327, allocations: 22.09 kB / 405.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.198e-05/0.4328, allocations: 7.234 kB / 405.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.433, allocations: 23.22 kB / 405.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.439e-05/0.4331, allocations: 21.64 kB / 405.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.4331, allocations: 3.797 kB / 405.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001661/0.4333, allocations: 145.5 kB / 405.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4333, allocations: 0 / 405.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004548/0.4337, allocations: 34.06 kB / 405.3 MB, free: 3.859 MB / 318.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.0001635/0.4339, allocations: 103.7 kB / 405.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005847/0.4345, allocations: 171.5 kB / 405.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4345, allocations: 0 / 405.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002511/0.4347, allocations: 82.7 kB / 405.6 MB, free: 3.695 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004951/0.4352, allocations: 50.33 kB / 405.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009663/0.4362, allocations: 372.6 kB / 406.1 MB, free: 3.438 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.4364, allocations: 0.7321 MB / 406.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.4366, allocations: 40.23 kB / 406.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.85e-05/0.4367, allocations: 21.64 kB / 406.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4367, allocations: 0 / 406.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of Templates: time 0.009054/0.4457, allocations: 2.215 MB / 409.1 MB, free: 2.277 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.002659968100488]