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.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.001915/0.001915, allocations: 102.9 kB / 21.93 MB, free: 5.207 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.002729/0.002729, allocations: 202.7 kB / 25.22 MB, free: 3.141 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.525/1.525, allocations: 207.7 MB / 236.1 MB, free: 9.766 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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 51.92 kB / 348.4 MB, free: 9.387 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3423, allocations: 49.15 MB / 397.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003396/0.3457, allocations: 1.802 MB / 399.4 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.3469, allocations: 0.6025 MB / 400 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.347, allocations: 6.406 kB / 400 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.3472, allocations: 30.84 kB / 400 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.3473, allocations: 41 kB / 400.1 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.3476, allocations: 64.67 kB / 400.1 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.3479, allocations: 166.8 kB / 400.3 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.3481, allocations: 52.59 kB / 400.3 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.3482, allocations: 76.56 kB / 400.4 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.3484, allocations: 72 kB / 400.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.3484, allocations: 11.97 kB / 400.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.389e-05/0.3485, allocations: 23.81 kB / 400.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.719e-05/0.3486, allocations: 46.47 kB / 400.6 MB, free: 7.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.133e-05/0.3487, allocations: 65.12 kB / 400.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003063/0.349, allocations: 195.4 kB / 400.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.349, allocations: 0 / 400.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.349, allocations: 0 / 400.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.349, allocations: 1.25 kB / 400.8 MB, free: 7.344 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.0008884/0.3499, allocations: 445 kB / 401.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3499, allocations: 13.8 kB / 401.3 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.971e-05/0.35, allocations: 27.34 kB / 401.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.3502, allocations: 181.3 kB / 401.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.3503, allocations: 15.48 kB / 401.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.3503, allocations: 14.88 kB / 401.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004061/0.3507, allocations: 202.3 kB / 401.7 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3507, allocations: 0.8125 kB / 401.7 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.3507, allocations: 6.641 kB / 401.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.854e-05/0.3508, allocations: 5.953 kB / 401.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003656/0.3511, allocations: 149.6 kB / 401.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.3522, allocations: 0.6884 MB / 402.6 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.3525, allocations: 150.7 kB / 402.7 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.3527, allocations: 74.03 kB / 402.8 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/0.3527, allocations: 12.53 kB / 402.8 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/0.353, allocations: 144.5 kB / 402.9 MB, free: 5.871 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.353, allocations: 0 / 402.9 MB, free: 5.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006667/0.3537, allocations: 249.5 kB / 403.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.3537, allocations: 84.19 kB / 403.2 MB, free: 5.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.3539, allocations: 198.6 kB / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.354, allocations: 31.73 kB / 403.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.91e-05/0.3541, allocations: 151.9 kB / 403.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.3541, allocations: 41.66 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.318e-05/0.3542, allocations: 39.55 kB / 403.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.672e-05/0.3543, allocations: 330.5 kB / 404 MB, free: 5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.3544, allocations: 71.69 kB / 404.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.3546, allocations: 130.5 kB / 404.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.355, allocations: 202.2 kB / 404.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.355, allocations: 1.031 kB / 404.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004627/0.3555, allocations: 249 kB / 404.7 MB, free: 4.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3555, allocations: 6.672 kB / 404.7 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3555, allocations: 5.562 kB / 404.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.3555, allocations: 3.031 kB / 404.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.3557, allocations: 35.78 kB / 404.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.3557, allocations: 2.969 kB / 404.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.3559, allocations: 29.38 kB / 404.7 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.3559, allocations: 10.44 kB / 404.8 MB, free: 4.645 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.0001238/0.356, allocations: 142.7 kB / 404.9 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.356, allocations: 27.94 kB / 404.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000453/0.3565, allocations: 209.5 kB / 405.1 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3565, allocations: 2.656 kB / 405.1 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3565, allocations: 0.75 kB / 405.1 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3565, allocations: 1.781 kB / 405.1 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002523/0.3568, allocations: 200 kB / 405.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3568, allocations: 5.094 kB / 405.3 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.3569, allocations: 19.91 kB / 405.4 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.145e-06/0.3569, allocations: 1.859 kB / 405.4 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.3569, allocations: 14 kB / 405.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3569, allocations: 5.438 kB / 405.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3569, allocations: 0.6562 kB / 405.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000419/0.3573, allocations: 227.5 kB / 405.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.511e-05/0.3574, allocations: 25.89 kB / 405.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.951e-05/0.3574, allocations: 6.156 kB / 405.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3575, allocations: 15.28 kB / 405.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.784e-05/0.3576, allocations: 17.94 kB / 405.7 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.3576, allocations: 4.281 kB / 405.7 MB, free: 4.066 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.3578, allocations: 146.5 kB / 405.8 MB, free: 3.969 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3578, allocations: 0 / 405.8 MB, free: 3.969 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.358, allocations: 37.78 kB / 405.8 MB, free: 3.961 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.0001425/0.3582, allocations: 106.7 kB / 405.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004229/0.3586, allocations: 164.8 kB / 406.1 MB, free: 3.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3586, allocations: 0 / 406.1 MB, free: 3.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.3588, allocations: 84.56 kB / 406.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.3592, allocations: 38.03 kB / 406.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007756/0.3599, allocations: 400.8 kB / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/0.3601, allocations: 129.9 kB / 406.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.332e-05/0.3601, allocations: 19.8 kB / 406.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3601, allocations: 3.938 kB / 406.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of Templates: time 0.006369/0.3665, allocations: 2.473 MB / 409.2 MB, free: 2.816 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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: 7.815664088819176]