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.001645/0.001645, allocations: 85.31 kB / 21.44 MB, free: 296 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.001493/0.001493, allocations: 162.1 kB / 24.7 MB, free: 3.551 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.394/1.394, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.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: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 298.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.14e-05/3.331e-05, allocations: 2.281 kB / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003364/0.003398, allocations: 1.797 MB / 300.7 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.004717, allocations: 0.6014 MB / 301.3 MB, free: 6.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.976e-05/0.004817, allocations: 4 kB / 301.3 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.004972, allocations: 35.59 kB / 301.4 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.005137, allocations: 31.67 kB / 301.4 MB, free: 6.242 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.005516, allocations: 79.72 kB / 301.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.005764, allocations: 167.3 kB / 301.6 MB, free: 6 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.005943, allocations: 41.94 kB / 301.7 MB, free: 5.961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.006129, allocations: 103.7 kB / 301.8 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.006296, allocations: 59.8 kB / 301.8 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.00634, allocations: 12 kB / 301.9 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.397e-05/0.006434, allocations: 23.98 kB / 301.9 MB, free: 5.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.006535, allocations: 39.83 kB / 301.9 MB, free: 5.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.494e-05/0.00662, allocations: 51.78 kB / 302 MB, free: 5.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.006964, allocations: 191.3 kB / 302.2 MB, free: 5.488 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.006968, allocations: 4 kB / 302.2 MB, free: 5.484 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006969, allocations: 0 / 302.2 MB, free: 5.484 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.006976, allocations: 0 / 302.2 MB, free: 5.484 MB / 286.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.001076/0.008052, allocations: 453.4 kB / 302.6 MB, free: 5.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.0081, allocations: 15.98 kB / 302.6 MB, free: 4.996 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.744e-05/0.008167, allocations: 20.8 kB / 302.6 MB, free: 4.977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.008475, allocations: 181.3 kB / 302.8 MB, free: 4.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.0085, allocations: 12.66 kB / 302.8 MB, free: 4.762 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.008543, allocations: 20.31 kB / 302.8 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.008957, allocations: 195.5 kB / 303 MB, free: 4.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.008968, allocations: 4.125 kB / 303 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.008988, allocations: 4.375 kB / 303 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.009011, allocations: 11.94 kB / 303.1 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.009331, allocations: 143.8 kB / 303.2 MB, free: 4.375 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.01051, allocations: 0.684 MB / 303.9 MB, free: 3.648 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.01086, allocations: 161 kB / 304 MB, free: 3.473 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.01103, allocations: 65.81 kB / 304.1 MB, free: 3.402 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.707e-05/0.01108, allocations: 7.984 kB / 304.1 MB, free: 3.395 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002895/0.01137, allocations: 156.9 kB / 304.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.01137, allocations: 0 / 304.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006178/0.01199, allocations: 254.2 kB / 304.5 MB, free: 2.969 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/0.01207, allocations: 81.11 kB / 304.6 MB, free: 2.871 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.01229, allocations: 196.9 kB / 304.8 MB, free: 2.668 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.01232, allocations: 29.7 kB / 304.8 MB, free: 2.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.01245, allocations: 152.3 kB / 305 MB, free: 2.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/0.01249, allocations: 39.64 kB / 305 MB, free: 2.441 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.228e-05/0.01257, allocations: 49.7 kB / 305 MB, free: 2.387 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.01275, allocations: 326.8 kB / 305.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.01291, allocations: 71.95 kB / 305.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.0131, allocations: 126.8 kB / 305.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/0.01346, allocations: 206.8 kB / 305.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01346, allocations: 0 / 305.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004366/0.0139, allocations: 241.4 kB / 306 MB, free: 1.371 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.01392, allocations: 15.88 kB / 306 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.01393, allocations: 0 / 306 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.01395, allocations: 7.984 kB / 306 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.01412, allocations: 40.11 kB / 306.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.01413, allocations: 4 kB / 306.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.01429, allocations: 31.81 kB / 306.1 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.01431, allocations: 8 kB / 306.1 MB, free: 1.266 MB / 286.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.0001493/0.01446, allocations: 137.8 kB / 306.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.302e-05/0.01449, allocations: 23.83 kB / 306.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004766/0.01497, allocations: 207 kB / 306.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.01498, allocations: 8 kB / 306.5 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.01498, allocations: 0 / 306.5 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.01498, allocations: 0 / 306.5 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.01522, allocations: 193.1 kB / 306.7 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.01523, allocations: 4 kB / 306.7 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.01534, allocations: 15.98 kB / 306.7 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.01534, allocations: 4 kB / 306.7 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.01536, allocations: 11.88 kB / 306.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.01536, allocations: 0 / 306.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.01536, allocations: 4 kB / 306.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.01576, allocations: 221.8 kB / 306.9 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.624e-05/0.01579, allocations: 15.84 kB / 306.9 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.01582, allocations: 7.938 kB / 306.9 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.01596, allocations: 19.97 kB / 307 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.713e-05/0.01603, allocations: 15.97 kB / 307 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.01605, allocations: 8 kB / 307 MB, free: 328 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001308/0.01618, allocations: 140.5 kB / 307.1 MB, free: 188 kB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.01618, allocations: 3.938 kB / 307.1 MB, free: 184 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.01646, allocations: 43.95 kB / 307.2 MB, free: 140 kB / 286.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.0001821/0.01664, allocations: 111.1 kB / 307.3 MB, free: 20 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004114/0.01705, allocations: 175.8 kB / 307.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01706, allocations: 0 / 307.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.01723, allocations: 75.89 kB / 307.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.01757, allocations: 59.59 kB / 307.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007627/0.01834, allocations: 363.1 kB / 307.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.01848, allocations: 128.9 kB / 308.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001321/0.01862, allocations: 33.47 kB / 308.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.983e-05/0.01868, allocations: 24.48 kB / 308.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.01868, allocations: 0 / 308.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Templates: time 0.006071/0.02475, allocations: 2.194 MB / 310.3 MB, free: 12.94 MB / 302.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/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.414043545722961]