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.0009281/0.0009281, allocations: 75.77 kB / 22.46 MB, free: 2.094 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.0009369/0.0009369, allocations: 164.1 kB / 25.75 MB, free: 8.949 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.9044/0.9044, allocations: 158.6 MB / 187.5 MB, free: 2.91 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 251.1 MB, free: 7.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.334e-05/2.47e-05, allocations: 2.312 kB / 251.1 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002588/0.002613, allocations: 1.861 MB / 253 MB, free: 5.938 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.006585, allocations: 0.6163 MB / 253.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.006696, allocations: 4 kB / 253.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.006824, allocations: 27.66 kB / 253.6 MB, free: 5.281 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001373/0.006961, allocations: 39.66 kB / 253.6 MB, free: 5.242 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.007232, allocations: 63.8 kB / 253.7 MB, free: 5.18 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.007441, allocations: 179.3 kB / 253.9 MB, free: 5.004 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.007594, allocations: 45.88 kB / 253.9 MB, free: 4.961 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.007744, allocations: 103.6 kB / 254 MB, free: 4.859 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.007871, allocations: 59.8 kB / 254.1 MB, free: 4.801 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.0079, allocations: 16 kB / 254.1 MB, free: 4.785 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.985e-05/0.00797, allocations: 19.98 kB / 254.1 MB, free: 4.766 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.154e-05/0.008041, allocations: 43.83 kB / 254.2 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.85e-05/0.00811, allocations: 47.84 kB / 254.2 MB, free: 4.676 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.008348, allocations: 151.3 kB / 254.4 MB, free: 4.527 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.00835, allocations: 0 / 254.4 MB, free: 4.527 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.008351, allocations: 4 kB / 254.4 MB, free: 4.523 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.008356, allocations: 0 / 254.4 MB, free: 4.523 MB / 234.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.0006818/0.009038, allocations: 0.5271 MB / 254.9 MB, free: 3.961 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.009079, allocations: 15.92 kB / 254.9 MB, free: 3.945 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.377e-05/0.009152, allocations: 32.8 kB / 254.9 MB, free: 3.914 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003251/0.0124, allocations: 184.1 kB / 255.1 MB, free: 3.707 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.01243, allocations: 8.656 kB / 255.1 MB, free: 3.699 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.602e-05/0.01246, allocations: 20.38 kB / 255.1 MB, free: 3.68 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.01275, allocations: 191.4 kB / 255.3 MB, free: 3.469 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.01276, allocations: 192 / 255.3 MB, free: 3.469 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.01277, allocations: 4.375 kB / 255.3 MB, free: 3.465 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.531e-05/0.0128, allocations: 11.94 kB / 255.4 MB, free: 3.453 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.01293, allocations: 63.89 kB / 255.4 MB, free: 3.391 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007941/0.01372, allocations: 0.8281 MB / 256.2 MB, free: 2.512 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.01393, allocations: 130 kB / 256.4 MB, free: 2.359 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.201e-05/0.014, allocations: 43.48 kB / 256.4 MB, free: 2.309 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.01403, allocations: 4 kB / 256.4 MB, free: 2.305 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003863/0.01442, allocations: 128.3 kB / 256.5 MB, free: 2.156 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.01442, allocations: 3.938 kB / 256.5 MB, free: 2.152 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.000308/0.01473, allocations: 149.8 kB / 256.7 MB, free: 2 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.01477, allocations: 81.11 kB / 256.8 MB, free: 1.902 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.01493, allocations: 246.7 kB / 257 MB, free: 1.641 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.01495, allocations: 33.7 kB / 257 MB, free: 1.598 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.338e-05/0.01505, allocations: 191.1 kB / 257.2 MB, free: 1.406 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.01508, allocations: 55.56 kB / 257.3 MB, free: 1.352 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.01515, allocations: 47.36 kB / 257.3 MB, free: 1.297 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.003143/0.01829, allocations: 0.5001 MB / 257.8 MB, free: 0.7852 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.721e-05/0.01836, allocations: 27.98 kB / 257.9 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.806e-05/0.01845, allocations: 109.4 kB / 258 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.01862, allocations: 149.4 kB / 258.1 MB, free: 448 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01862, allocations: 4 kB / 258.1 MB, free: 444 kB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002462/0.01887, allocations: 169.2 kB / 258.3 MB, free: 268 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.01888, allocations: 7.938 kB / 258.3 MB, free: 260 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.01889, allocations: 4 kB / 258.3 MB, free: 256 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.01891, allocations: 7.984 kB / 258.3 MB, free: 248 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.01905, allocations: 35.92 kB / 258.3 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.01905, allocations: 8.188 kB / 258.3 MB, free: 204 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.441e-05/0.01914, allocations: 19.88 kB / 258.4 MB, free: 184 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.01915, allocations: 12.7 kB / 258.4 MB, free: 172 kB / 234.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 0.0001167/0.01927, allocations: 168.6 kB / 258.5 MB, free: 15.99 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.0193, allocations: 31.8 kB / 258.6 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002429/0.01955, allocations: 147.1 kB / 258.7 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.01955, allocations: 0 / 258.7 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.01955, allocations: 0 / 258.7 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.01956, allocations: 7.984 kB / 258.7 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.01973, allocations: 184.5 kB / 258.9 MB, free: 15.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.01973, allocations: 4 kB / 258.9 MB, free: 15.58 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.802e-05/0.0198, allocations: 23.97 kB / 258.9 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.0198, allocations: 0 / 258.9 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.01981, allocations: 7.938 kB / 258.9 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.01981, allocations: 0 / 258.9 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01981, allocations: 0 / 258.9 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.02001, allocations: 179.9 kB / 259.1 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.841e-05/0.02003, allocations: 15.84 kB / 259.1 MB, free: 15.33 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.02005, allocations: 11.77 kB / 259.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.177e-05/0.02011, allocations: 11.98 kB / 259.2 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/0.02018, allocations: 23.97 kB / 259.2 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.02019, allocations: 4 kB / 259.2 MB, free: 15.28 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.012e-05/0.02028, allocations: 172.1 kB / 259.3 MB, free: 15.11 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02028, allocations: 0 / 259.3 MB, free: 15.11 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000239/0.02052, allocations: 35.95 kB / 259.4 MB, free: 15.08 MB / 250.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 0.0001282/0.02065, allocations: 107.2 kB / 259.5 MB, free: 14.96 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001979/0.02085, allocations: 103.3 kB / 259.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.02085, allocations: 384 / 259.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.175e-05/0.02093, allocations: 59.59 kB / 259.6 MB, free: 14.8 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/0.02422, allocations: 43.97 kB / 259.7 MB, free: 14.75 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000729/0.02494, allocations: 358.8 kB / 260 MB, free: 14.37 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.034e-05/0.02499, allocations: 75.98 kB / 260.1 MB, free: 14.28 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.845e-05/0.02508, allocations: 33.45 kB / 260.1 MB, free: 14.25 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.02513, allocations: 20.5 kB / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02513, allocations: 0 / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of Templates: time 0.007567/0.0327, allocations: 2.223 MB / 262.4 MB, free: 12.02 MB / 250.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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.624406608985737]