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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008027/0.0008026, allocations: 98.09 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 190.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004581/0.0004583, allocations: 8 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 51.51 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002301/0.1161, allocations: 1.548 MB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1174, allocations: 0.6158 MB / 360.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.1176, allocations: 8 kB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.1177, allocations: 19.73 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.1179, allocations: 19.8 kB / 360.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003165/0.1182, allocations: 63.88 kB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.1185, allocations: 147.4 kB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.1186, allocations: 64.23 kB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.1188, allocations: 55.72 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.119, allocations: 71.61 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.119, allocations: 4 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.203e-05/0.1191, allocations: 12 kB / 361.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.1192, allocations: 31.91 kB / 361.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.85e-05/0.1192, allocations: 53.58 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.1194, allocations: 124 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1194, allocations: 0 / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1194, allocations: 0 / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1194, allocations: 0 / 361.4 MB, free: 10.83 MB / 302.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.0008288/0.1203, allocations: 498.8 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1203, allocations: 8.031 kB / 361.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.1205, allocations: 39.7 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.1208, allocations: 234.3 kB / 362.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.1208, allocations: 12.28 kB / 362.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.623e-05/0.1208, allocations: 16 kB / 362.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.1212, allocations: 203.7 kB / 362.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1212, allocations: 4 kB / 362.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.1213, allocations: 4 kB / 362.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.1213, allocations: 4 kB / 362.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.1216, allocations: 151.8 kB / 362.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.1228, allocations: 0.7937 MB / 363.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.1231, allocations: 165.1 kB / 363.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.1232, allocations: 81.81 kB / 363.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.33e-05/0.1233, allocations: 12.12 kB / 363.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002755/0.1236, allocations: 151.7 kB / 363.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.1236, allocations: 0 / 363.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005709/0.1242, allocations: 269.3 kB / 364 MB, free: 8.004 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.1242, allocations: 85.05 kB / 364.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.1244, allocations: 211 kB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.1245, allocations: 29.7 kB / 364.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.1246, allocations: 140.2 kB / 364.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.303e-05/0.1246, allocations: 47.36 kB / 364.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.1246, allocations: 4 kB / 364.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1248, allocations: 334.8 kB / 364.9 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.1249, allocations: 71.95 kB / 364.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.1251, allocations: 134.1 kB / 365.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.1253, allocations: 92.06 kB / 365.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.1253, allocations: 3.938 kB / 365.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004457/0.1258, allocations: 245.4 kB / 365.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1258, allocations: 12.03 kB / 365.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1258, allocations: 0 / 365.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1258, allocations: 4 kB / 365.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.126, allocations: 35.92 kB / 365.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.126, allocations: 0 / 365.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.1262, allocations: 39.81 kB / 365.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1262, allocations: 15.98 kB / 365.5 MB, free: 6.453 MB / 302.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,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.1264, allocations: 145.7 kB / 365.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.584e-05/0.1264, allocations: 15.81 kB / 365.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004505/0.1269, allocations: 222.8 kB / 365.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1269, allocations: 8 kB / 365.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1269, allocations: 0 / 365.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.1269, allocations: 0 / 365.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002807/0.1272, allocations: 269.5 kB / 366.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1272, allocations: 0 / 366.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.1273, allocations: 23.92 kB / 366.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.111e-06/0.1273, allocations: 4 kB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1274, allocations: 0 / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1274, allocations: 96 / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1274, allocations: 7.938 kB / 366.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004124/0.1278, allocations: 238.5 kB / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-05/0.1279, allocations: 96.83 kB / 366.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.1279, allocations: 3.984 kB / 366.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.1281, allocations: 27.98 kB / 366.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.247e-05/0.1281, allocations: 23.89 kB / 366.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.1282, allocations: 8 kB / 366.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.1283, allocations: 140.7 kB / 366.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1283, allocations: 0 / 366.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002661/0.1286, allocations: 35.94 kB / 366.8 MB, free: 5.098 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001397/0.1287, allocations: 107.2 kB / 366.9 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003796/0.1291, allocations: 175.8 kB / 367 MB, free: 4.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1291, allocations: 0 / 367 MB, free: 4.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.1293, allocations: 92.58 kB / 367.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.1296, allocations: 48.02 kB / 367.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007175/0.1304, allocations: 418.9 kB / 367.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.1307, allocations: 0.7399 MB / 368.3 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.1309, allocations: 37.5 kB / 368.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.1309, allocations: 19.44 kB / 368.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1309, allocations: 0 / 368.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of Templates: time 0.005124/0.136, allocations: 1.812 MB / 370.2 MB, free: 1.629 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (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) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches