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.001392/0.001392, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009328/0.0009328, allocations: 139.9 kB / 24.89 MB, free: 9.207 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.9768/0.9768, allocations: 173.3 MB / 201.5 MB, free: 9.219 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.514e-05/1.644e-05, allocations: 2.312 kB / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002639/0.002655, allocations: 1.91 MB / 270.4 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009469/0.003602, allocations: 0.5957 MB / 271 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.135e-05/0.003693, allocations: 7.938 kB / 271 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.003813, allocations: 27.67 kB / 271 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.003946, allocations: 43.59 kB / 271.1 MB, free: 3.578 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.004178, allocations: 67.78 kB / 271.1 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.004374, allocations: 171.3 kB / 271.3 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.004504, allocations: 46.53 kB / 271.4 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.004644, allocations: 99.77 kB / 271.5 MB, free: 3.199 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.004773, allocations: 59.78 kB / 271.5 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.0048, allocations: 16 kB / 271.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.005e-05/0.00488, allocations: 23.94 kB / 271.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.882e-05/0.004938, allocations: 43.83 kB / 271.6 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.364e-05/0.004992, allocations: 47.83 kB / 271.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.00519, allocations: 155.3 kB / 271.8 MB, free: 2.859 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.005192, allocations: 4 kB / 271.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.005193, allocations: 0 / 271.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.005196, allocations: 0 / 271.8 MB, free: 2.855 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.0004958/0.005692, allocations: 400 kB / 272.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.876e-05/0.00572, allocations: 8.922 kB / 272.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.005767, allocations: 28.91 kB / 272.2 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.00595, allocations: 173.2 kB / 272.4 MB, free: 2.207 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.005969, allocations: 12.64 kB / 272.4 MB, free: 2.195 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.005986, allocations: 20.38 kB / 272.4 MB, free: 2.176 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.006184, allocations: 162.5 kB / 272.6 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.006195, allocations: 3.984 kB / 272.6 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.006209, allocations: 11.98 kB / 272.6 MB, free: 1.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.006225, allocations: 4 kB / 272.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.563e-05/0.006311, allocations: 56.44 kB / 272.7 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005531/0.006864, allocations: 0.5709 MB / 273.2 MB, free: 1.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.00702, allocations: 182.5 kB / 273.4 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.185e-05/0.007062, allocations: 29.86 kB / 273.4 MB, free: 1.086 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.007085, allocations: 4 kB / 273.4 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001253/0.007211, allocations: 112.1 kB / 273.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.007212, allocations: 0 / 273.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002003/0.007412, allocations: 119.2 kB / 273.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.007451, allocations: 81.05 kB / 273.7 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.007571, allocations: 191.5 kB / 273.9 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.007589, allocations: 29.7 kB / 274 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.065e-05/0.00765, allocations: 136.3 kB / 274.1 MB, free: 364 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.007678, allocations: 39.64 kB / 274.1 MB, free: 324 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.512e-05/0.007734, allocations: 41.69 kB / 274.2 MB, free: 276 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.00783, allocations: 338.8 kB / 274.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.93e-05/0.007869, allocations: 22.81 kB / 274.5 MB, free: 15.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.527e-05/0.007934, allocations: 74.84 kB / 274.6 MB, free: 15.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.008062, allocations: 127.1 kB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.008064, allocations: 0 / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001634/0.008227, allocations: 131 kB / 274.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.00824, allocations: 8 kB / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.008244, allocations: 0 / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.00826, allocations: 7.984 kB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.00838, allocations: 40.22 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.008385, allocations: 12.64 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.56e-05/0.008461, allocations: 23.88 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.008471, allocations: 4 kB / 274.9 MB, free: 15.43 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 8.114e-05/0.008552, allocations: 128.6 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.008576, allocations: 19.92 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.008738, allocations: 119 kB / 275.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.008741, allocations: 4 kB / 275.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.008743, allocations: 0 / 275.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.008746, allocations: 0 / 275.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.008879, allocations: 129.7 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.008882, allocations: 4 kB / 275.3 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-05/0.008944, allocations: 19.98 kB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.008947, allocations: 7.984 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.098e-06/0.008956, allocations: 3.938 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.008957, allocations: 3.938 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.008958, allocations: 0 / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001335/0.009092, allocations: 129.8 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.009109, allocations: 19.83 kB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.009127, allocations: 7.938 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.068e-05/0.009177, allocations: 16 kB / 275.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.009226, allocations: 19.95 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.009233, allocations: 0 / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.869e-05/0.009282, allocations: 59.03 kB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009282, allocations: 3.938 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001994/0.009482, allocations: 39.95 kB / 275.7 MB, free: 14.64 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 8.985e-05/0.009571, allocations: 84.41 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001364/0.009708, allocations: 88.88 kB / 275.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.009711, allocations: 4.125 kB / 275.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.995e-05/0.009771, allocations: 40.78 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001717/0.009943, allocations: 39.97 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005448/0.01049, allocations: 343.8 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.61e-05/0.01053, allocations: 79.97 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.935e-05/0.01059, allocations: 21.48 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.0107, allocations: 83.36 kB / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.0107, allocations: 0 / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Templates: time 0.004206/0.0149, allocations: 2.288 MB / 278.7 MB, free: 11.57 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 -s gbode -gbm=radauIIA3 -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","",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.6855521630495787]