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.001848/0.001848, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001854/0.001854, allocations: 153.1 kB / 24.26 MB, free: 168 kB / 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 1.532/1.532, allocations: 173.4 MB / 200.8 MB, free: 9.301 MB / 186.7 MB " [Timeout remaining time 178] 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.472e-06/1.472e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.395e-05/3.543e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004621/0.004656, allocations: 1.833 MB / 269.1 MB, free: 4.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.006324, allocations: 0.588 MB / 269.7 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.00646, allocations: 3.938 kB / 269.7 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.006653, allocations: 31.66 kB / 269.8 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.006877, allocations: 35.66 kB / 269.8 MB, free: 4.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.00727, allocations: 71.73 kB / 269.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000344/0.007614, allocations: 175.3 kB / 270 MB, free: 3.988 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.007824, allocations: 41.89 kB / 270.1 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.008074, allocations: 107.7 kB / 270.2 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.008264, allocations: 59.8 kB / 270.2 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.008312, allocations: 12 kB / 270.2 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.008413, allocations: 23.98 kB / 270.3 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.008524, allocations: 43.83 kB / 270.3 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.008634, allocations: 47.84 kB / 270.4 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004287/0.009063, allocations: 191.2 kB / 270.5 MB, free: 3.469 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.009067, allocations: 0 / 270.5 MB, free: 3.469 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.009068, allocations: 0 / 270.5 MB, free: 3.469 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.009075, allocations: 4 kB / 270.6 MB, free: 3.465 MB / 250.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.00118/0.01026, allocations: 0.5307 MB / 271.1 MB, free: 2.895 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.0103, allocations: 12.92 kB / 271.1 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.01042, allocations: 36.78 kB / 271.1 MB, free: 2.848 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.01082, allocations: 184 kB / 271.3 MB, free: 2.641 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.01085, allocations: 12.66 kB / 271.3 MB, free: 2.629 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.065e-05/0.01089, allocations: 16.38 kB / 271.3 MB, free: 2.613 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004894/0.01138, allocations: 191.2 kB / 271.5 MB, free: 2.406 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.0114, allocations: 3.938 kB / 271.5 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.01142, allocations: 4 kB / 271.5 MB, free: 2.398 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.749e-05/0.01145, allocations: 8 kB / 271.5 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.01183, allocations: 103.8 kB / 271.6 MB, free: 2.289 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.01341, allocations: 0.8554 MB / 272.5 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.01383, allocations: 142 kB / 272.6 MB, free: 1.219 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.01401, allocations: 51.48 kB / 272.7 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.946e-05/0.01407, allocations: 11.98 kB / 272.7 MB, free: 1.148 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003459/0.01442, allocations: 139.7 kB / 272.8 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.01442, allocations: 0 / 272.8 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000716/0.01513, allocations: 189.6 kB / 273 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/0.01522, allocations: 85.11 kB / 273.1 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003875/0.01561, allocations: 274.7 kB / 273.4 MB, free: 420 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.01564, allocations: 33.7 kB / 273.4 MB, free: 380 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.01584, allocations: 195.1 kB / 273.6 MB, free: 180 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.86e-05/0.01591, allocations: 43.62 kB / 273.6 MB, free: 136 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.01604, allocations: 55.36 kB / 273.7 MB, free: 72 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003779/0.01642, allocations: 0.5079 MB / 274.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.0166, allocations: 43.98 kB / 274.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.01687, allocations: 121.5 kB / 274.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004393/0.01731, allocations: 185.3 kB / 274.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.01731, allocations: 3.938 kB / 274.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005876/0.0179, allocations: 197.3 kB / 274.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.01792, allocations: 7.938 kB / 274.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.01793, allocations: 8.188 kB / 274.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.01795, allocations: 0 / 274.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/0.0182, allocations: 31.98 kB / 274.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.967e-05/0.01822, allocations: 7.938 kB / 274.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.01841, allocations: 19.94 kB / 274.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.01844, allocations: 8 kB / 274.8 MB, free: 14.86 MB / 266.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.0002322/0.01867, allocations: 188.4 kB / 275 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.01872, allocations: 23.97 kB / 275 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005676/0.01929, allocations: 175.7 kB / 275.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.0193, allocations: 4 kB / 275.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.01931, allocations: 4 kB / 275.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.01933, allocations: 3.984 kB / 275.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/0.0197, allocations: 200.6 kB / 275.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.01971, allocations: 7.938 kB / 275.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.01986, allocations: 19.92 kB / 275.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.01986, allocations: 4 kB / 275.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.01988, allocations: 0 / 275.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.01988, allocations: 0 / 275.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.01989, allocations: 4 kB / 275.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.02042, allocations: 207.8 kB / 275.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.02046, allocations: 19.84 kB / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.581e-05/0.02051, allocations: 7.984 kB / 275.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.02065, allocations: 11.98 kB / 275.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.416e-05/0.02074, allocations: 19.97 kB / 275.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.02076, allocations: 0 / 275.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00023/0.02099, allocations: 193.4 kB / 275.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02099, allocations: 0 / 275.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004505/0.02144, allocations: 43.89 kB / 275.9 MB, free: 13.66 MB / 266.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.0002236/0.02166, allocations: 107.2 kB / 276 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004869/0.02215, allocations: 130.8 kB / 276.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.02215, allocations: 4 kB / 276.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.02239, allocations: 67.59 kB / 276.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004931/0.02288, allocations: 48.16 kB / 276.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000988/0.02387, allocations: 367.8 kB / 276.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000186/0.02405, allocations: 120.9 kB / 276.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001548/0.02421, allocations: 29.47 kB / 276.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.137e-05/0.02429, allocations: 24.48 kB / 276.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02429, allocations: 0 / 276.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of Templates: time 0.009102/0.03339, allocations: 2.219 MB / 279 MB, free: 10.55 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] 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.55137881601695]