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.00123/0.00123, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 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.00133/0.00133, allocations: 157 kB / 25.44 MB, free: 8.855 MB / 18.57 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 0.9506/0.9506, allocations: 158.6 MB / 187.2 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 9.22e-07/9.22e-07, allocations: 0 / 299.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.414e-05/1.506e-05, allocations: 2.281 kB / 299.7 MB, free: 6.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001847/0.001862, allocations: 1.798 MB / 301.5 MB, free: 5.121 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.00291, allocations: 0.6046 MB / 302.1 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.056e-05/0.002981, allocations: 4 kB / 302.1 MB, free: 4.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.55e-05/0.003056, allocations: 27.61 kB / 302.1 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.423e-05/0.00315, allocations: 39.66 kB / 302.2 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000185/0.003335, allocations: 67.8 kB / 302.2 MB, free: 4.371 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.003477, allocations: 167.3 kB / 302.4 MB, free: 4.207 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.829e-05/0.003575, allocations: 41.92 kB / 302.4 MB, free: 4.168 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.124e-05/0.003666, allocations: 103.7 kB / 302.5 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.861e-05/0.003755, allocations: 63.8 kB / 302.6 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.003774, allocations: 12 kB / 302.6 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.082e-05/0.003824, allocations: 19.98 kB / 302.6 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.078e-05/0.003875, allocations: 51.83 kB / 302.7 MB, free: 3.922 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.387e-05/0.003919, allocations: 47.84 kB / 302.7 MB, free: 3.875 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.004096, allocations: 199.2 kB / 302.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.403e-06/0.004097, allocations: 0 / 302.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.004098, allocations: 0 / 302.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.004102, allocations: 0 / 302.9 MB, free: 3.68 MB / 282.7 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.0004988/0.004601, allocations: 445.5 kB / 303.4 MB, free: 3.215 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.004632, allocations: 11.98 kB / 303.4 MB, free: 3.203 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.004675, allocations: 28.8 kB / 303.4 MB, free: 3.176 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.004874, allocations: 181.2 kB / 303.6 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.00489, allocations: 8.656 kB / 303.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.004911, allocations: 16.38 kB / 303.6 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.005178, allocations: 195.5 kB / 303.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.005185, allocations: 4.125 kB / 303.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.005202, allocations: 12.31 kB / 303.8 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.005217, allocations: 7.938 kB / 303.8 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002199/0.005437, allocations: 143.9 kB / 304 MB, free: 2.578 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.006007, allocations: 0.684 MB / 304.6 MB, free: 1.852 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.006185, allocations: 153 kB / 304.8 MB, free: 1.684 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.913e-05/0.006264, allocations: 73.8 kB / 304.9 MB, free: 1.605 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.006292, allocations: 11.98 kB / 304.9 MB, free: 1.594 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001458/0.006438, allocations: 148.8 kB / 305 MB, free: 1.434 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 9.72e-07/0.006439, allocations: 3.938 kB / 305 MB, free: 1.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003296/0.006768, allocations: 246.1 kB / 305.3 MB, free: 1.184 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.006805, allocations: 89.03 kB / 305.3 MB, free: 1.078 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.006924, allocations: 200.8 kB / 305.5 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.00694, allocations: 33.7 kB / 305.6 MB, free: 0.832 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.503e-05/0.007005, allocations: 140.4 kB / 305.7 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.007032, allocations: 47.64 kB / 305.8 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.007079, allocations: 41.7 kB / 305.8 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.234e-05/0.007161, allocations: 326.8 kB / 306.1 MB, free: 276 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-05/0.007243, allocations: 67.95 kB / 306.2 MB, free: 208 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.007348, allocations: 134.7 kB / 306.3 MB, free: 48 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.007548, allocations: 210.8 kB / 306.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.00755, allocations: 0 / 306.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002388/0.007788, allocations: 245.2 kB / 306.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.007798, allocations: 12.12 kB / 306.8 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.007804, allocations: 4 kB / 306.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.253e-06/0.007811, allocations: 0 / 306.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.455e-05/0.007896, allocations: 36.03 kB / 306.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.0079, allocations: 3.938 kB / 306.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.452e-05/0.007974, allocations: 35.81 kB / 306.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.007983, allocations: 8 kB / 306.9 MB, free: 15.47 MB / 298.7 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 7.869e-05/0.008062, allocations: 141.7 kB / 307 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.578e-05/0.008077, allocations: 23.84 kB / 307 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002363/0.008314, allocations: 211 kB / 307.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.008316, allocations: 4 kB / 307.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.008319, allocations: 0 / 307.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.008324, allocations: 0 / 307.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.008472, allocations: 193.2 kB / 307.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.008473, allocations: 0 / 307.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.658e-05/0.008519, allocations: 19.98 kB / 307.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.008521, allocations: 0 / 307.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.008532, allocations: 7.938 kB / 307.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.008533, allocations: 4 kB / 307.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.008534, allocations: 3.938 kB / 307.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.008743, allocations: 225.8 kB / 307.7 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.587e-05/0.008759, allocations: 15.91 kB / 307.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.008775, allocations: 7.922 kB / 307.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.341e-05/0.008828, allocations: 15.98 kB / 307.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.008866, allocations: 19.95 kB / 307.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.008873, allocations: 8 kB / 307.7 MB, free: 14.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.955e-05/0.008943, allocations: 144.5 kB / 307.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008943, allocations: 0 / 307.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001596/0.009102, allocations: 39.89 kB / 307.9 MB, free: 14.34 MB / 298.7 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 9.556e-05/0.009198, allocations: 107.2 kB / 308 MB, free: 14.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002124/0.00941, allocations: 163.8 kB / 308.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.009411, allocations: 0 / 308.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.563e-05/0.009507, allocations: 84.27 kB / 308.3 MB, free: 13.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/0.009705, allocations: 52.86 kB / 308.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004773/0.01018, allocations: 400.7 kB / 308.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.745e-05/0.01026, allocations: 128.9 kB / 308.8 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.0103, allocations: 24.5 kB / 308.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.0103, allocations: 0 / 308.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of Templates: time 0.003123/0.01342, allocations: 2.471 MB / 311.3 MB, free: 10.86 MB / 298.7 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: 4.639303373172879]