Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 105.4 kB / 19.8 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002316/0.002316, allocations: 211.8 kB / 23 MB, free: 5.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.571/1.571, allocations: 230.2 MB / 256.2 MB, free: 8.52 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 71.88 kB / 376.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3123, allocations: 53.31 MB / 429.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003556/0.3159, allocations: 1.914 MB / 431.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.3172, allocations: 0.6544 MB / 432.4 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.3173, allocations: 8 kB / 432.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.3175, allocations: 23.67 kB / 432.4 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.3177, allocations: 35.66 kB / 432.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003444/0.318, allocations: 87.77 kB / 432.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.3183, allocations: 159.4 kB / 432.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.3185, allocations: 52.27 kB / 432.7 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.3186, allocations: 71.66 kB / 432.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.3188, allocations: 87.59 kB / 432.9 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.3189, allocations: 12 kB / 432.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.435e-05/0.3189, allocations: 31.92 kB / 432.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.53e-05/0.319, allocations: 43.78 kB / 433 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.878e-05/0.3191, allocations: 83.48 kB / 433 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003963/0.3195, allocations: 192.3 kB / 433.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3195, allocations: 3.984 kB / 433.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3195, allocations: 0 / 433.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.3195, allocations: 0 / 433.2 MB, free: 4.086 MB / 334.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.001027/0.3206, allocations: 0.5181 MB / 433.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3206, allocations: 12.03 kB / 433.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.3208, allocations: 32.78 kB / 433.8 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.3211, allocations: 236 kB / 434 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.3212, allocations: 20.58 kB / 434 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.3212, allocations: 12.38 kB / 434 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003814/0.3216, allocations: 204.1 kB / 434.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.3216, allocations: 4 kB / 434.3 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.3216, allocations: 4 kB / 434.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.052e-05/0.3216, allocations: 4 kB / 434.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.3219, allocations: 147.8 kB / 434.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.3231, allocations: 0.7663 MB / 435.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.3235, allocations: 169 kB / 435.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.3236, allocations: 69.8 kB / 435.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.402e-05/0.3237, allocations: 7.938 kB / 435.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002633/0.3239, allocations: 145 kB / 435.6 MB, free: 1.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.3239, allocations: 0 / 435.6 MB, free: 1.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006131/0.3246, allocations: 258.2 kB / 435.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.3246, allocations: 85.09 kB / 435.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.3248, allocations: 203.1 kB / 436.1 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.3249, allocations: 37.7 kB / 436.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.325, allocations: 144.2 kB / 436.3 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.325, allocations: 47.62 kB / 436.3 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.631e-05/0.3251, allocations: 45.7 kB / 436.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3253, allocations: 326.8 kB / 436.7 MB, free: 372 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.3254, allocations: 67.95 kB / 436.7 MB, free: 304 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.3256, allocations: 130.9 kB / 436.9 MB, free: 148 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.326, allocations: 214.6 kB / 437.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.326, allocations: 112 / 437.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000425/0.3264, allocations: 245.2 kB / 437.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3264, allocations: 4.188 kB / 437.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3264, allocations: 8 kB / 437.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.3264, allocations: 4 kB / 437.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.3266, allocations: 35.92 kB / 437.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3266, allocations: 4 kB / 437.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.3268, allocations: 31.86 kB / 437.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.3268, allocations: 8 kB / 437.4 MB, free: 15.57 MB / 350.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.0001519/0.3269, allocations: 149.7 kB / 437.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/0.327, allocations: 19.91 kB / 437.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004939/0.3275, allocations: 214.8 kB / 437.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3275, allocations: 4 kB / 437.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3275, allocations: 0 / 437.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3275, allocations: 0 / 437.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003726/0.3279, allocations: 273.4 kB / 438.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3279, allocations: 0 / 438.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.328, allocations: 19.98 kB / 438.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.328, allocations: 4 kB / 438.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.328, allocations: 8 kB / 438.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.328, allocations: 0 / 438.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.328, allocations: 0 / 438.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000464/0.3285, allocations: 232.6 kB / 438.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.215e-05/0.3285, allocations: 92.95 kB / 438.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.3286, allocations: 11.98 kB / 438.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.3287, allocations: 15.98 kB / 438.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.377e-05/0.3288, allocations: 15.97 kB / 438.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.3288, allocations: 4 kB / 438.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.329, allocations: 148.6 kB / 438.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.329, allocations: 4 kB / 438.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002666/0.3292, allocations: 35.95 kB / 438.6 MB, free: 14.24 MB / 350.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.0001994/0.3294, allocations: 115.1 kB / 438.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004165/0.3298, allocations: 167.9 kB / 438.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3298, allocations: 0 / 438.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.33, allocations: 79.89 kB / 439 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.3304, allocations: 44.97 kB / 439 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007924/0.3312, allocations: 392.9 kB / 439.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.3316, allocations: 0.7357 MB / 440.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.3317, allocations: 33.53 kB / 440.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.3317, allocations: 19.42 kB / 440.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3317, allocations: 0 / 440.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of Templates: time 0.005932/0.3376, allocations: 2.18 MB / 442.4 MB, free: 10.45 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.742438958957791]