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.00108/0.00108, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001262/0.001262, allocations: 167.7 kB / 25.32 MB, free: 9.473 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 1.019/1.019, allocations: 158.6 MB / 187.2 MB, free: 2.512 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.573e-06/1.573e-06, allocations: 0 / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.512e-05, allocations: 9.406 kB / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002766/0.002792, allocations: 1.867 MB / 252.9 MB, free: 1.719 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.004075, allocations: 0.6163 MB / 253.5 MB, free: 1.094 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.004212, allocations: 11.94 kB / 253.5 MB, free: 1.082 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.004384, allocations: 23.67 kB / 253.5 MB, free: 1.059 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.004573, allocations: 39.59 kB / 253.6 MB, free: 1.02 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003773/0.00495, allocations: 75.72 kB / 253.7 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.005153, allocations: 167.3 kB / 253.8 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.005301, allocations: 41.94 kB / 253.9 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.005434, allocations: 91.78 kB / 254 MB, free: 0.6523 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.005576, allocations: 75.77 kB / 254 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.005604, allocations: 12 kB / 254 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.528e-05/0.005679, allocations: 16 kB / 254.1 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.836e-05/0.005748, allocations: 47.83 kB / 254.1 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.257e-05/0.00581, allocations: 47.84 kB / 254.1 MB, free: 468 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.006035, allocations: 151.3 kB / 254.3 MB, free: 316 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.006037, allocations: 0 / 254.3 MB, free: 316 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006038, allocations: 4 kB / 254.3 MB, free: 312 kB / 234.7 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.006043, allocations: 0 / 254.3 MB, free: 312 kB / 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.000677/0.00672, allocations: 0.5233 MB / 254.8 MB, free: 15.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.006779, allocations: 15.98 kB / 254.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.881e-05/0.006858, allocations: 36.73 kB / 254.9 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.00708, allocations: 180.2 kB / 255.1 MB, free: 15.49 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.007108, allocations: 16.64 kB / 255.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.00713, allocations: 20.31 kB / 255.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.007372, allocations: 179.5 kB / 255.3 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.007381, allocations: 192 / 255.3 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.007397, allocations: 8.359 kB / 255.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/0.007419, allocations: 11.94 kB / 255.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.007527, allocations: 67.89 kB / 255.3 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007653/0.008293, allocations: 0.8396 MB / 256.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.008478, allocations: 122.1 kB / 256.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.575e-05/0.008534, allocations: 43.42 kB / 256.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.008575, allocations: 8 kB / 256.4 MB, free: 14.08 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/0.008716, allocations: 120.3 kB / 256.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.008718, allocations: 0 / 256.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003181/0.009036, allocations: 153.8 kB / 256.6 MB, free: 13.78 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.009082, allocations: 81.11 kB / 256.7 MB, free: 13.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.009238, allocations: 250.7 kB / 256.9 MB, free: 13.42 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.009257, allocations: 29.7 kB / 257 MB, free: 13.38 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.009367, allocations: 191 kB / 257.2 MB, free: 13.19 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.009401, allocations: 47.64 kB / 257.2 MB, free: 13.14 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.009462, allocations: 55.16 kB / 257.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.009626, allocations: 0.4962 MB / 257.8 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.042e-05/0.009687, allocations: 35.97 kB / 257.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.081e-05/0.009778, allocations: 109.5 kB / 257.9 MB, free: 12.4 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.009932, allocations: 149.3 kB / 258 MB, free: 12.22 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.009935, allocations: 0 / 258 MB, free: 12.22 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000209/0.01014, allocations: 173.3 kB / 258.2 MB, free: 12.04 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.01016, allocations: 7.938 kB / 258.2 MB, free: 12.04 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.01017, allocations: 4.109 kB / 258.2 MB, free: 12.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.01018, allocations: 3.938 kB / 258.2 MB, free: 12.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.01031, allocations: 43.91 kB / 258.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.01032, allocations: 4 kB / 258.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.029e-05/0.01039, allocations: 23.88 kB / 258.3 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.0104, allocations: 8.703 kB / 258.3 MB, free: 11.95 MB / 250.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.0001059/0.01051, allocations: 172.7 kB / 258.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.01054, allocations: 27.8 kB / 258.5 MB, free: 11.74 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/0.01078, allocations: 147.1 kB / 258.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.01078, allocations: 7.984 kB / 258.7 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.01079, allocations: 0 / 258.7 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.01079, allocations: 0 / 258.7 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.01095, allocations: 192.5 kB / 258.8 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01095, allocations: 0 / 258.8 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.793e-05/0.01101, allocations: 19.98 kB / 258.9 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.01101, allocations: 0 / 258.9 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.01103, allocations: 11.92 kB / 258.9 MB, free: 11.33 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.01103, allocations: 7.938 kB / 258.9 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01103, allocations: 0 / 258.9 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001774/0.01121, allocations: 174.4 kB / 259.1 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.82e-05/0.01123, allocations: 15.84 kB / 259.1 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.01125, allocations: 3.938 kB / 259.1 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.445e-05/0.01129, allocations: 15.98 kB / 259.1 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.01135, allocations: 15.97 kB / 259.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.01136, allocations: 4 kB / 259.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.268e-05/0.01144, allocations: 176.1 kB / 259.3 MB, free: 10.9 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01144, allocations: 0 / 259.3 MB, free: 10.9 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001852/0.01163, allocations: 39.95 kB / 259.3 MB, free: 10.86 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.0001233/0.01175, allocations: 107.1 kB / 259.4 MB, free: 10.74 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001833/0.01193, allocations: 107.5 kB / 259.5 MB, free: 10.63 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.01194, allocations: 0 / 259.5 MB, free: 10.63 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.65e-05/0.012, allocations: 47.61 kB / 259.6 MB, free: 10.58 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.01222, allocations: 46.94 kB / 259.6 MB, free: 10.54 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006211/0.01284, allocations: 358.9 kB / 260 MB, free: 10.16 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.563e-05/0.01289, allocations: 75.98 kB / 260 MB, free: 10.06 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.537e-05/0.01296, allocations: 33.45 kB / 260.1 MB, free: 10.03 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.897e-05/0.01299, allocations: 24.44 kB / 260.1 MB, free: 10.01 MB / 250.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01299, allocations: 4 kB / 260.1 MB, free: 10 MB / 250.7 MB Notification: Performance of Templates: time 0.004272/0.01727, allocations: 2.377 MB / 262.5 MB, free: 7.648 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.852024053223431]