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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 113.4 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 180.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 48.41 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1415, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00407/0.1456, allocations: 1.852 MB / 377 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1472, allocations: 0.6326 MB / 377.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.1473, allocations: 7.938 kB / 377.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.1475, allocations: 27.61 kB / 377.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.1477, allocations: 31.72 kB / 377.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.1481, allocations: 71.8 kB / 377.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.1484, allocations: 159.5 kB / 377.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002311/0.1487, allocations: 73.48 kB / 378 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.1489, allocations: 71.64 kB / 378.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1491, allocations: 83.61 kB / 378.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.437e-05/0.1491, allocations: 16 kB / 378.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.854e-05/0.1492, allocations: 19.94 kB / 378.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1494, allocations: 43.89 kB / 378.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.1495, allocations: 79.47 kB / 378.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.1498, allocations: 195.2 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1498, allocations: 0 / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1499, allocations: 4 kB / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1499, allocations: 0 / 378.5 MB, free: 1.219 MB / 318.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.001166/0.1511, allocations: 0.5065 MB / 379 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.1511, allocations: 8.031 kB / 379 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.454e-05/0.1512, allocations: 28.64 kB / 379 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.1516, allocations: 235.7 kB / 379.3 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.1516, allocations: 12.66 kB / 379.3 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.458e-05/0.1517, allocations: 12.38 kB / 379.3 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/0.1522, allocations: 203.2 kB / 379.5 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1522, allocations: 0 / 379.5 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.1522, allocations: 8 kB / 379.5 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.493e-05/0.1523, allocations: 4 kB / 379.5 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2461/0.3983, allocations: 142.9 kB / 379.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.3997, allocations: 0.7699 MB / 380.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004025/0.4001, allocations: 161.5 kB / 380.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.4003, allocations: 76.3 kB / 380.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.016e-05/0.4004, allocations: 10.12 kB / 380.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000343/0.4007, allocations: 148.1 kB / 380.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 4.238e-06/0.4007, allocations: 2.672 kB / 380.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007215/0.4014, allocations: 252.9 kB / 381 MB, free: 12.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.4015, allocations: 82.06 kB / 381.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.4018, allocations: 203.5 kB / 381.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.4018, allocations: 31.7 kB / 381.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.4019, allocations: 143.3 kB / 381.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.402, allocations: 43.95 kB / 381.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.605e-05/0.4021, allocations: 45.38 kB / 381.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.4022, allocations: 334.8 kB / 381.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.4024, allocations: 68.59 kB / 382 MB, free: 11.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.4026, allocations: 125.9 kB / 382.1 MB, free: 11.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.403, allocations: 203.2 kB / 382.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.403, allocations: 1.125 kB / 382.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005638/0.4036, allocations: 253.8 kB / 382.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.4037, allocations: 5.969 kB / 382.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4037, allocations: 1.75 kB / 382.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.736e-05/0.4037, allocations: 2.875 kB / 382.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.4039, allocations: 38.73 kB / 382.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/0.404, allocations: 7.125 kB / 382.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.4042, allocations: 28.83 kB / 382.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.4042, allocations: 10.83 kB / 382.6 MB, free: 11.59 MB / 318.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.0001524/0.4043, allocations: 141.3 kB / 382.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.4044, allocations: 21.44 kB / 382.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005427/0.4049, allocations: 215.5 kB / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.405, allocations: 1.188 kB / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.405, allocations: 1.5 kB / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.405, allocations: 1.266 kB / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003093/0.4053, allocations: 278.6 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4053, allocations: 1.406 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.4054, allocations: 20.98 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4054, allocations: 0 / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.4055, allocations: 2.75 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4055, allocations: 6.531 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4055, allocations: 2.062 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/0.4059, allocations: 227.9 kB / 383.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/0.4059, allocations: 95.81 kB / 383.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.406, allocations: 2.297 kB / 383.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.4061, allocations: 20.19 kB / 383.6 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.257e-05/0.4062, allocations: 15.8 kB / 383.7 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.4062, allocations: 8.922 kB / 383.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001048/0.4063, allocations: 148 kB / 383.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4063, allocations: 0 / 383.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002614/0.4066, allocations: 38.47 kB / 383.9 MB, free: 10.83 MB / 318.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.0001396/0.4067, allocations: 112.1 kB / 384 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004031/0.4071, allocations: 177.8 kB / 384.1 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4071, allocations: 4.125 kB / 384.1 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.4073, allocations: 81.45 kB / 384.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.4077, allocations: 48.77 kB / 384.3 MB, free: 10.65 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007611/0.4085, allocations: 356.6 kB / 384.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.4087, allocations: 0.7365 MB / 385.4 MB, free: 9.734 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.4089, allocations: 41.47 kB / 385.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.313e-05/0.4089, allocations: 20.64 kB / 385.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4089, allocations: 0 / 385.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of Templates: time 0.006342/0.4153, allocations: 2.125 MB / 387.5 MB, free: 9.578 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches