Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001771/0.001771, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 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.001522/0.001522, allocations: 210.6 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 51.92 kB / 378.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2573, allocations: 53.37 MB / 431.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003369/0.2607, allocations: 1.836 MB / 433.4 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.2621, allocations: 0.6193 MB / 434 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.563e-05/0.2622, allocations: 3.938 kB / 434 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2623, allocations: 23.73 kB / 434.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.2624, allocations: 39.66 kB / 434.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.2627, allocations: 83.78 kB / 434.2 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.263, allocations: 167.4 kB / 434.3 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.2632, allocations: 44.56 kB / 434.4 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.2634, allocations: 75.7 kB / 434.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.2635, allocations: 75.5 kB / 434.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.2636, allocations: 19.94 kB / 434.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.681e-05/0.2636, allocations: 31.97 kB / 434.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.592e-05/0.2637, allocations: 43.84 kB / 434.6 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.342e-05/0.2638, allocations: 71.59 kB / 434.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.2641, allocations: 197.3 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.2641, allocations: 0 / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2641, allocations: 0 / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2641, allocations: 0 / 434.9 MB, free: 3.43 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.0009102/0.265, allocations: 453.5 kB / 435.3 MB, free: 2.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.265, allocations: 8.031 kB / 435.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.2652, allocations: 32.78 kB / 435.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.2655, allocations: 175.4 kB / 435.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.2656, allocations: 12.66 kB / 435.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.2656, allocations: 12.38 kB / 435.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.266, allocations: 208.1 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.266, allocations: 0 / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.266, allocations: 11.94 kB / 435.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.266, allocations: 8 kB / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003101/0.2663, allocations: 139.8 kB / 435.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.2674, allocations: 0.684 MB / 436.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.2677, allocations: 165.1 kB / 436.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.2679, allocations: 77.67 kB / 436.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.2679, allocations: 4 kB / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.2682, allocations: 145 kB / 437 MB, free: 1.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.2682, allocations: 3.938 kB / 437 MB, free: 1.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005849/0.2688, allocations: 257.7 kB / 437.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.088e-05/0.2688, allocations: 85.05 kB / 437.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.2691, allocations: 202.8 kB / 437.5 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.2691, allocations: 25.7 kB / 437.5 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.2692, allocations: 148.3 kB / 437.7 MB, free: 428 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.874e-05/0.2692, allocations: 51.62 kB / 437.7 MB, free: 376 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.2693, allocations: 41.7 kB / 437.8 MB, free: 328 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.2695, allocations: 330.8 kB / 438.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.2696, allocations: 67.95 kB / 438.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.2698, allocations: 128.4 kB / 438.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.2702, allocations: 202.6 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2702, allocations: 4 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004516/0.2707, allocations: 249.3 kB / 438.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2707, allocations: 8 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.2707, allocations: 0 / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.2707, allocations: 4 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.2708, allocations: 35.91 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.2709, allocations: 4.703 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.271, allocations: 27.88 kB / 438.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.271, allocations: 8 kB / 438.8 MB, free: 15.21 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.0001468/0.2712, allocations: 145.8 kB / 439 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.2712, allocations: 15.91 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000446/0.2716, allocations: 218.9 kB / 439.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2717, allocations: 0 / 439.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2717, allocations: 4 kB / 439.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2717, allocations: 3.984 kB / 439.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002376/0.2719, allocations: 193.1 kB / 439.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2719, allocations: 3.938 kB / 439.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.272, allocations: 23.98 kB / 439.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.272, allocations: 7.922 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.272, allocations: 4 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.272, allocations: 0 / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.272, allocations: 3.938 kB / 439.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003984/0.2724, allocations: 228 kB / 439.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.315e-05/0.2725, allocations: 23.8 kB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.2725, allocations: 0 / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.2726, allocations: 19.97 kB / 439.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.73e-05/0.2727, allocations: 23.97 kB / 439.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.2727, allocations: 4 kB / 439.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001303/0.2728, allocations: 140.5 kB / 439.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2728, allocations: 0 / 439.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002618/0.2731, allocations: 43.89 kB / 439.9 MB, free: 14.06 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.0001483/0.2732, allocations: 101.8 kB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004147/0.2736, allocations: 172.1 kB / 440.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2737, allocations: 4 kB / 440.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.2738, allocations: 75.89 kB / 440.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.2742, allocations: 47.91 kB / 440.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006718/0.2748, allocations: 365.3 kB / 440.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.275, allocations: 125 kB / 440.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.2751, allocations: 37.44 kB / 440.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.039e-05/0.2751, allocations: 19.44 kB / 440.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2751, allocations: 0 / 440.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of Templates: time 0.006351/0.2815, allocations: 2.385 MB / 443.2 MB, free: 10.74 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.566861517727375]