Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.0008476/0.0008476, allocations: 80 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003742/0.003742, allocations: 139.5 kB / 24.68 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8236/0.8236, allocations: 173.4 MB / 201.2 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 3.938 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.514e-05/1.645e-05, allocations: 2.281 kB / 319.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001825/0.001841, allocations: 1.812 MB / 321.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006954/0.002536, allocations: 0.5531 MB / 322 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.21e-05/0.002619, allocations: 7.938 kB / 322 MB, free: 3.496 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.002728, allocations: 27.67 kB / 322.1 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.002854, allocations: 39.59 kB / 322.1 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.003094, allocations: 79.66 kB / 322.2 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000169/0.003263, allocations: 171.3 kB / 322.4 MB, free: 3.184 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003946/0.003658, allocations: 49.91 kB / 322.4 MB, free: 3.133 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.003764, allocations: 95.72 kB / 322.5 MB, free: 3.039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.003872, allocations: 59.8 kB / 322.6 MB, free: 2.98 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.003895, allocations: 12 kB / 322.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.161e-05/0.003957, allocations: 23.98 kB / 322.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.89e-05/0.004016, allocations: 51.77 kB / 322.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.863e-05/0.004064, allocations: 51.84 kB / 322.7 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.004263, allocations: 191.3 kB / 322.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.004265, allocations: 0 / 322.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.004266, allocations: 0 / 322.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.004271, allocations: 0 / 322.9 MB, free: 2.656 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.0005631/0.004834, allocations: 441.5 kB / 323.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.004864, allocations: 12.92 kB / 323.3 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.439e-05/0.004908, allocations: 24.8 kB / 323.3 MB, free: 2.156 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.005091, allocations: 185.2 kB / 323.5 MB, free: 1.949 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.005105, allocations: 12.66 kB / 323.5 MB, free: 1.938 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.005123, allocations: 16.38 kB / 323.6 MB, free: 1.922 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.005352, allocations: 199.9 kB / 323.7 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.005361, allocations: 0 / 323.7 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.005376, allocations: 8 kB / 323.8 MB, free: 1.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.005391, allocations: 4 kB / 323.8 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.005572, allocations: 147.8 kB / 323.9 MB, free: 1.555 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006168/0.006189, allocations: 0.6723 MB / 324.6 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.006379, allocations: 161 kB / 324.7 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.073e-05/0.00646, allocations: 73.81 kB / 324.8 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.00649, allocations: 7.984 kB / 324.8 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001514/0.006642, allocations: 145.2 kB / 325 MB, free: 428 kB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 9.82e-07/0.006642, allocations: 0 / 325 MB, free: 428 kB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003487/0.006991, allocations: 262 kB / 325.2 MB, free: 160 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.007036, allocations: 81.11 kB / 325.3 MB, free: 60 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.00717, allocations: 195.8 kB / 325.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.007185, allocations: 37.7 kB / 325.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.769e-05/0.007253, allocations: 152.2 kB / 325.7 MB, free: 15.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.007276, allocations: 43.8 kB / 325.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.00732, allocations: 45.64 kB / 325.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.421e-05/0.007395, allocations: 326.8 kB / 326.1 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.362e-05/0.007478, allocations: 67.95 kB / 326.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.007578, allocations: 122.8 kB / 326.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.007764, allocations: 206.6 kB / 326.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.007768, allocations: 7.938 kB / 326.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002363/0.008004, allocations: 237.3 kB / 326.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.008015, allocations: 12.19 kB / 326.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.00802, allocations: 3.984 kB / 326.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.008032, allocations: 4 kB / 326.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.242e-05/0.008124, allocations: 35.92 kB / 326.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.00813, allocations: 4 kB / 326.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.104e-05/0.008201, allocations: 31.86 kB / 326.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.00821, allocations: 8 kB / 326.8 MB, free: 14.46 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 8.073e-05/0.008291, allocations: 141.7 kB / 326.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.008306, allocations: 23.86 kB / 327 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002454/0.008552, allocations: 211 kB / 327.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.008554, allocations: 0 / 327.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.008558, allocations: 4 kB / 327.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.008563, allocations: 4 kB / 327.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.008689, allocations: 189.2 kB / 327.4 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.008691, allocations: 3.938 kB / 327.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.87e-05/0.00874, allocations: 19.98 kB / 327.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.008742, allocations: 0 / 327.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.008752, allocations: 12 kB / 327.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.008753, allocations: 0 / 327.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.008754, allocations: 0 / 327.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.008958, allocations: 225.7 kB / 327.6 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.917e-05/0.008977, allocations: 19.78 kB / 327.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.008994, allocations: 11.98 kB / 327.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.32e-05/0.009047, allocations: 15.97 kB / 327.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.009093, allocations: 19.97 kB / 327.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.009104, allocations: 4.094 kB / 327.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.227e-05/0.009176, allocations: 145.5 kB / 327.8 MB, free: 13.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009176, allocations: 0 / 327.8 MB, free: 13.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00016/0.009336, allocations: 39.95 kB / 327.9 MB, free: 13.32 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.729e-05/0.009434, allocations: 107.1 kB / 328 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002189/0.009652, allocations: 179.1 kB / 328.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.009654, allocations: 0 / 328.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.89e-05/0.009753, allocations: 84.89 kB / 328.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.009945, allocations: 44.05 kB / 328.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004214/0.01037, allocations: 388.9 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.23e-05/0.01044, allocations: 128.9 kB / 328.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.823e-05/0.01048, allocations: 20.5 kB / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01048, allocations: 0 / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of Templates: time 0.002918/0.0134, allocations: 2.472 MB / 331.3 MB, free: 9.871 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.316847709007561]