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.002011/0.002011, allocations: 116.2 kB / 21.94 MB, free: 20 kB / 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.002876/0.002876, allocations: 212.7 kB / 25.24 MB, free: 3.547 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.541/1.541, allocations: 207.6 MB / 236 MB, free: 9.98 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.001855/0.001855, allocations: 55.92 kB / 348.4 MB, free: 9.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3159, allocations: 49.17 MB / 397.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003199/0.3191, allocations: 1.868 MB / 399.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3203, allocations: 0.6371 MB / 400.1 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.3204, allocations: 6.5 kB / 400.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.3206, allocations: 27.02 kB / 400.1 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.3207, allocations: 35.95 kB / 400.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.3211, allocations: 75.72 kB / 400.2 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003135/0.3214, allocations: 164.4 kB / 400.4 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.3216, allocations: 56.11 kB / 400.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.3217, allocations: 71.83 kB / 400.5 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.3219, allocations: 85.75 kB / 400.6 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.3219, allocations: 15.62 kB / 400.6 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.065e-05/0.322, allocations: 22.36 kB / 400.6 MB, free: 7.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.717e-05/0.3221, allocations: 46.48 kB / 400.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.918e-05/0.3222, allocations: 77.55 kB / 400.8 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.3225, allocations: 192.3 kB / 401 MB, free: 7.309 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.3225, allocations: 0 / 401 MB, free: 7.309 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3225, allocations: 1.344 kB / 401 MB, free: 7.309 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.3225, allocations: 0 / 401 MB, free: 7.309 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.0008962/0.3234, allocations: 447.2 kB / 401.4 MB, free: 6.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3235, allocations: 14.84 kB / 401.4 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.978e-05/0.3235, allocations: 22.86 kB / 401.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.3238, allocations: 182.3 kB / 401.6 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.3238, allocations: 10.97 kB / 401.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.649e-05/0.3238, allocations: 18.39 kB / 401.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.3242, allocations: 206.4 kB / 401.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.3242, allocations: 0 / 401.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.3242, allocations: 5.828 kB / 401.8 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.3243, allocations: 6.125 kB / 401.9 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.3246, allocations: 150.4 kB / 402 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.3257, allocations: 0.7436 MB / 402.7 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.326, allocations: 158.9 kB / 402.9 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.3262, allocations: 71.02 kB / 403 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.45e-05/0.3262, allocations: 3.859 kB / 403 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.3265, allocations: 153 kB / 403.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.3265, allocations: 0 / 403.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006124/0.3271, allocations: 259.1 kB / 403.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.3271, allocations: 79.88 kB / 403.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.3273, allocations: 199.5 kB / 403.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.3274, allocations: 31.89 kB / 403.7 MB, free: 5.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.246e-05/0.3274, allocations: 146.1 kB / 403.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.3275, allocations: 53.88 kB / 403.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.3276, allocations: 40.98 kB / 403.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.592e-05/0.3276, allocations: 330.5 kB / 404.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.3278, allocations: 69.19 kB / 404.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.3279, allocations: 127.8 kB / 404.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002995/0.3282, allocations: 213.5 kB / 404.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.3282, allocations: 1.094 kB / 404.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003952/0.3286, allocations: 235.5 kB / 404.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3286, allocations: 5.938 kB / 404.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3287, allocations: 3.844 kB / 404.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.3287, allocations: 6.969 kB / 404.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.3288, allocations: 38.31 kB / 404.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.3289, allocations: 2.406 kB / 404.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.329, allocations: 35.09 kB / 405 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.329, allocations: 6.844 kB / 405 MB, free: 4.551 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.0001047/0.3291, allocations: 142.5 kB / 405.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.881e-05/0.3292, allocations: 16.91 kB / 405.1 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003948/0.3295, allocations: 221 kB / 405.3 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3296, allocations: 6 kB / 405.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3296, allocations: 1.312 kB / 405.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3296, allocations: 5.484 kB / 405.3 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.3298, allocations: 240.6 kB / 405.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3298, allocations: 0 / 405.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.3299, allocations: 24.33 kB / 405.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.3299, allocations: 2.062 kB / 405.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.3299, allocations: 10.05 kB / 405.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3299, allocations: 0.8438 kB / 405.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3299, allocations: 1.469 kB / 405.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003476/0.3303, allocations: 231.6 kB / 405.8 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.778e-05/0.3303, allocations: 26.25 kB / 405.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.3303, allocations: 6.578 kB / 405.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.3305, allocations: 18.47 kB / 405.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.127e-05/0.3305, allocations: 21.78 kB / 405.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.3305, allocations: 9.641 kB / 405.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001065/0.3306, allocations: 144.2 kB / 406.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3306, allocations: 0 / 406.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002568/0.3309, allocations: 33.42 kB / 406.1 MB, free: 3.824 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.0001242/0.331, allocations: 100.1 kB / 406.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004019/0.3314, allocations: 167.5 kB / 406.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3314, allocations: 1.531 kB / 406.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.3316, allocations: 77.89 kB / 406.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.3319, allocations: 47.91 kB / 406.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006584/0.3326, allocations: 405.2 kB / 406.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.3328, allocations: 0.7361 MB / 407.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.863e-05/0.3328, allocations: 22.33 kB / 407.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3328, allocations: 5.375 kB / 407.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of Templates: time 0.005548/0.3384, allocations: 2.438 MB / 410.1 MB, free: 2.062 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: 8.191922831116244]