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.001029/0.001029, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001184, allocations: 59.78 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 50.55 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003692/0.1109, allocations: 1.86 MB / 359.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1124, allocations: 0.6583 MB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.1126, allocations: 7.938 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.1128, allocations: 23.73 kB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002093/0.113, allocations: 39.66 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004814/0.1135, allocations: 83.78 kB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003495/0.1139, allocations: 163.4 kB / 360.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.1141, allocations: 72.25 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.1144, allocations: 79.62 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.1146, allocations: 83.56 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.1146, allocations: 12 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.707e-05/0.1147, allocations: 24 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.652e-05/0.1148, allocations: 35.84 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.635e-05/0.1149, allocations: 87.45 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.1152, allocations: 187.6 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1152, allocations: 0 / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1152, allocations: 7.938 kB / 360.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.1152, allocations: 0 / 360.9 MB, free: 10.69 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.001031/0.1163, allocations: 0.5105 MB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1163, allocations: 8.031 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.1165, allocations: 28.73 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.1168, allocations: 239.5 kB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.1169, allocations: 16.66 kB / 361.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.1169, allocations: 12.38 kB / 361.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.1174, allocations: 204 kB / 361.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1174, allocations: 0 / 361.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.1175, allocations: 8 kB / 361.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.1175, allocations: 4 kB / 361.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.1178, allocations: 147.8 kB / 362 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.1191, allocations: 0.7701 MB / 362.8 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.1195, allocations: 177 kB / 363 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.1196, allocations: 73.81 kB / 363.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.1197, allocations: 3.984 kB / 363.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002773/0.1199, allocations: 151.7 kB / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.12, allocations: 4 kB / 363.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005934/0.1206, allocations: 253.9 kB / 363.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.1206, allocations: 89.09 kB / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.1208, allocations: 207 kB / 363.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.1209, allocations: 33.7 kB / 363.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.844e-05/0.121, allocations: 136.2 kB / 363.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.934e-05/0.121, allocations: 39.45 kB / 364 MB, free: 7.355 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.782e-05/0.1211, allocations: 49.61 kB / 364 MB, free: 7.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1213, allocations: 334.8 kB / 364.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1215, allocations: 67.95 kB / 364.4 MB, free: 6.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.1217, allocations: 122.7 kB / 364.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.122, allocations: 210.6 kB / 364.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.122, allocations: 0 / 364.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000462/0.1225, allocations: 245.1 kB / 365 MB, free: 6.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.1225, allocations: 8.109 kB / 365 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1226, allocations: 3.938 kB / 365 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1226, allocations: 4 kB / 365 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.1227, allocations: 36.09 kB / 365 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1228, allocations: 8 kB / 365 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.1229, allocations: 27.83 kB / 365 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.123, allocations: 8 kB / 365.1 MB, free: 6.184 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,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.0001619/0.1231, allocations: 157.6 kB / 365.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.1232, allocations: 15.81 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004516/0.1236, allocations: 210.8 kB / 365.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1237, allocations: 4 kB / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1237, allocations: 4 kB / 365.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1237, allocations: 0 / 365.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002923/0.124, allocations: 273.5 kB / 365.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.124, allocations: 0 / 365.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.1241, allocations: 23.92 kB / 365.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1241, allocations: 0 / 365.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.1241, allocations: 8 kB / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.1242, allocations: 0 / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1242, allocations: 4 kB / 365.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004117/0.1246, allocations: 225.6 kB / 366 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.303e-05/0.1247, allocations: 100.8 kB / 366.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.1247, allocations: 4 kB / 366.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.1248, allocations: 15.98 kB / 366.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.612e-05/0.1249, allocations: 27.95 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1249, allocations: 0 / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.1251, allocations: 148.7 kB / 366.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1251, allocations: 0 / 366.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002915/0.1254, allocations: 39.92 kB / 366.3 MB, free: 4.836 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 (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.0002175/0.1256, allocations: 103.2 kB / 366.4 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004327/0.126, allocations: 179.8 kB / 366.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.126, allocations: 0 / 366.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.1262, allocations: 80.8 kB / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.1266, allocations: 47.98 kB / 366.7 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000731/0.1273, allocations: 385.5 kB / 367.1 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.1277, allocations: 0.7319 MB / 367.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.1279, allocations: 41.45 kB / 367.8 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.774e-05/0.1279, allocations: 19.44 kB / 367.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1279, allocations: 0 / 367.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of Templates: time 0.006245/0.1342, allocations: 2.116 MB / 370 MB, free: 1.109 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