Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001361/0.001361, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.7 MB / 247.7 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 65.19 kB / 307.9 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1021, allocations: 50.53 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003475/0.1056, allocations: 1.88 MB / 360.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.107, allocations: 0.6544 MB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1071, allocations: 0 / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.1073, allocations: 27.67 kB / 361 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.1074, allocations: 43.66 kB / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.1077, allocations: 75.84 kB / 361.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.108, allocations: 167.4 kB / 361.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.1082, allocations: 76.09 kB / 361.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.1084, allocations: 75.66 kB / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.1085, allocations: 79.61 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.175e-05/0.1086, allocations: 12 kB / 361.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.538e-05/0.1087, allocations: 27.98 kB / 361.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.685e-05/0.1088, allocations: 47.78 kB / 361.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.1089, allocations: 83.48 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.1091, allocations: 179.6 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1091, allocations: 4 kB / 361.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1092, allocations: 0 / 361.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.1092, allocations: 4 kB / 361.8 MB, free: 10.53 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.0009818/0.1102, allocations: 0.5087 MB / 362.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1102, allocations: 12.03 kB / 362.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.1104, allocations: 32.67 kB / 362.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.1107, allocations: 248 kB / 362.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.1107, allocations: 12.64 kB / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/0.1108, allocations: 20.31 kB / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003836/0.1112, allocations: 196.1 kB / 362.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1112, allocations: 4 kB / 362.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.1112, allocations: 4 kB / 362.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.1112, allocations: 7.984 kB / 362.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003137/0.1115, allocations: 143.8 kB / 363 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.1127, allocations: 0.7701 MB / 363.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.1131, allocations: 165 kB / 363.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.1133, allocations: 81.73 kB / 364 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.1134, allocations: 4 kB / 364 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003266/0.1137, allocations: 152.4 kB / 364.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.1138, allocations: 0 / 364.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006064/0.1144, allocations: 253.5 kB / 364.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.1144, allocations: 77.11 kB / 364.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.1147, allocations: 211 kB / 364.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.1147, allocations: 33.7 kB / 364.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1148, allocations: 140.2 kB / 364.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.1149, allocations: 43.44 kB / 364.9 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.194e-05/0.115, allocations: 49.61 kB / 365 MB, free: 7.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1151, allocations: 330.8 kB / 365.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.1153, allocations: 67.95 kB / 365.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.1155, allocations: 137.9 kB / 365.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/0.1159, allocations: 206.6 kB / 365.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1159, allocations: 0 / 365.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004809/0.1164, allocations: 245.8 kB / 365.9 MB, free: 6.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.1164, allocations: 8.188 kB / 365.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1165, allocations: 4.109 kB / 365.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.1165, allocations: 7.938 kB / 365.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1167, allocations: 35.91 kB / 366 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.1167, allocations: 4 kB / 366 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.1169, allocations: 27.83 kB / 366 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.1169, allocations: 11.98 kB / 366 MB, free: 6.016 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.0001535/0.117, allocations: 145.6 kB / 366.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.1171, allocations: 19.81 kB / 366.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004767/0.1176, allocations: 222.9 kB / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1176, allocations: 0 / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1176, allocations: 0 / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.1176, allocations: 7.984 kB / 366.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00031/0.1179, allocations: 261.5 kB / 366.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1179, allocations: 0 / 366.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1181, allocations: 23.98 kB / 366.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1181, allocations: 8 kB / 366.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1181, allocations: 3.984 kB / 366.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1181, allocations: 0 / 366.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1181, allocations: 0 / 366.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.1185, allocations: 229.5 kB / 366.9 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.583e-05/0.1186, allocations: 96.83 kB / 367 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.1186, allocations: 8 kB / 367 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.1188, allocations: 15.97 kB / 367 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.1189, allocations: 15.98 kB / 367.1 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.1189, allocations: 8 kB / 367.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.119, allocations: 144.7 kB / 367.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.119, allocations: 0 / 367.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.1193, allocations: 35.94 kB / 367.2 MB, free: 4.684 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.000157/0.1195, allocations: 111.2 kB / 367.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004337/0.1199, allocations: 183.8 kB / 367.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1199, allocations: 0 / 367.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001886/0.1201, allocations: 87.89 kB / 367.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.1205, allocations: 48.22 kB / 367.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007582/0.1213, allocations: 407 kB / 368.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/0.1217, allocations: 0.7397 MB / 368.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.132e-05/0.1218, allocations: 15.44 kB / 368.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1218, allocations: 3.938 kB / 368.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of Templates: time 0.004988/0.1268, allocations: 2.437 MB / 371.3 MB, free: 0.6133 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches