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.0008968/0.0008969, allocations: 93.94 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 202.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002749/0.0002749, allocations: 8 kB / 308.4 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09041/0.09071, allocations: 51.52 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002171/0.09292, allocations: 1.583 MB / 361.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.09419, allocations: 0.6273 MB / 362.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.09436, allocations: 3.938 kB / 362.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.0945, allocations: 19.86 kB / 362.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.09467, allocations: 31.72 kB / 362.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.09499, allocations: 67.88 kB / 362.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.09525, allocations: 159.4 kB / 362.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.09546, allocations: 68.25 kB / 362.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.09565, allocations: 63.66 kB / 362.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.0958, allocations: 63.62 kB / 362.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.09584, allocations: 8 kB / 362.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.206e-05/0.09593, allocations: 12 kB / 362.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.924e-05/0.09601, allocations: 35.84 kB / 362.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.472e-05/0.09613, allocations: 109.1 kB / 362.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.09632, allocations: 116 kB / 362.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.09634, allocations: 0 / 362.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.09634, allocations: 0 / 362.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.09636, allocations: 0 / 362.9 MB, free: 10.29 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.0008247/0.09719, allocations: 499 kB / 363.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.09723, allocations: 11.97 kB / 363.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.0974, allocations: 40.64 kB / 363.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.09767, allocations: 239.7 kB / 363.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.09771, allocations: 12.66 kB / 363.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.09774, allocations: 16.31 kB / 363.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003551/0.0981, allocations: 208.1 kB / 363.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.09812, allocations: 0 / 363.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.09815, allocations: 11.98 kB / 363.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.09818, allocations: 4 kB / 363.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003144/0.0985, allocations: 159.8 kB / 364 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.09958, allocations: 0.7974 MB / 364.8 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.09991, allocations: 157 kB / 365 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1001, allocations: 89.73 kB / 365.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.1001, allocations: 4 kB / 365.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.1004, allocations: 147.8 kB / 365.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.694e-06/0.1004, allocations: 0 / 365.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005933/0.101, allocations: 277.9 kB / 365.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.1011, allocations: 81.11 kB / 365.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.1013, allocations: 207.1 kB / 365.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.1013, allocations: 37.7 kB / 365.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.543e-05/0.1014, allocations: 140.1 kB / 365.9 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.1014, allocations: 47.44 kB / 366 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.1015, allocations: 21.72 kB / 366 MB, free: 6.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1016, allocations: 334.8 kB / 366.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.1018, allocations: 75.89 kB / 366.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.102, allocations: 138.1 kB / 366.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000329/0.1023, allocations: 210.6 kB / 366.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1023, allocations: 4 kB / 366.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004322/0.1028, allocations: 245.2 kB / 367 MB, free: 5.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1028, allocations: 8 kB / 367 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.1028, allocations: 0 / 367 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1028, allocations: 4 kB / 367 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.103, allocations: 44.09 kB / 367 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.103, allocations: 0 / 367 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.1032, allocations: 39.73 kB / 367.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1032, allocations: 12 kB / 367.1 MB, free: 5.715 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.0001385/0.1034, allocations: 149.6 kB / 367.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.846e-05/0.1034, allocations: 15.81 kB / 367.3 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00045/0.1039, allocations: 222.9 kB / 367.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1039, allocations: 0 / 367.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1039, allocations: 0 / 367.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.1039, allocations: 3.984 kB / 367.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.1042, allocations: 269.5 kB / 367.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1042, allocations: 4 kB / 367.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.1043, allocations: 28.08 kB / 367.8 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1043, allocations: 3.938 kB / 367.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.1043, allocations: 7.984 kB / 367.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1043, allocations: 4 kB / 367.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1044, allocations: 4 kB / 367.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003981/0.1048, allocations: 241.4 kB / 368 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.514e-05/0.1048, allocations: 92.92 kB / 368.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.1049, allocations: 4 kB / 368.1 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.105, allocations: 23.97 kB / 368.1 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.1051, allocations: 15.98 kB / 368.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.1051, allocations: 7.984 kB / 368.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.1052, allocations: 140.7 kB / 368.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1052, allocations: 4 kB / 368.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.1055, allocations: 43.84 kB / 368.4 MB, free: 4.344 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.000145/0.1056, allocations: 99.19 kB / 368.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003783/0.106, allocations: 187.9 kB / 368.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.106, allocations: 3.938 kB / 368.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.1062, allocations: 80.58 kB / 368.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.1066, allocations: 48.28 kB / 368.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007111/0.1073, allocations: 468.8 kB / 369.2 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.1076, allocations: 0.7397 MB / 370 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.75e-05/0.1077, allocations: 19.44 kB / 370 MB, free: 2.652 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1077, allocations: 0 / 370 MB, free: 2.652 MB / 302.1 MB Notification: Performance of Templates: time 0.004429/0.1121, allocations: 2.416 MB / 372.4 MB, free: 260 kB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches