Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 194.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.6 MB / 244.3 MB, free: 8.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000725/0.000725, allocations: 90.88 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000196/0.000196, allocations: 4 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1903, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001423/0.1917, allocations: 1.528 MB / 409 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000732/0.1925, allocations: 0.5945 MB / 409.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.955e-05/0.1926, allocations: 8.969 kB / 409.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.788e-05/0.1927, allocations: 15.8 kB / 409.6 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.1928, allocations: 30.12 kB / 409.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.193, allocations: 63.81 kB / 409.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.1932, allocations: 143.5 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.1933, allocations: 48.41 kB / 409.9 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.1934, allocations: 60.95 kB / 410 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.739e-05/0.1935, allocations: 59.64 kB / 410 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.1936, allocations: 4 kB / 410 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.603e-05/0.1937, allocations: 19.98 kB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.444e-05/0.1937, allocations: 29.98 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.1938, allocations: 53.62 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.1939, allocations: 115.7 kB / 410.2 MB, free: 25.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1939, allocations: 4 kB / 410.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1939, allocations: 3.938 kB / 410.3 MB, free: 25.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.197e-06/0.1939, allocations: 0.7188 kB / 410.3 MB, free: 25.05 MB / 298.7 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.0006393/0.1946, allocations: 0.4917 MB / 410.7 MB, free: 24.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.765e-05/0.1946, allocations: 8.031 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1947, allocations: 39.7 kB / 410.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1949, allocations: 230.6 kB / 411 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.1949, allocations: 8.281 kB / 411 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.195, allocations: 23.94 kB / 411.1 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.1953, allocations: 187.8 kB / 411.2 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.1953, allocations: 7.984 kB / 411.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.1953, allocations: 8 kB / 411.3 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.1953, allocations: 7.984 kB / 411.3 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.1956, allocations: 151.8 kB / 411.4 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008116/0.1964, allocations: 0.7897 MB / 412.2 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.1966, allocations: 173 kB / 412.4 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.1968, allocations: 77.8 kB / 412.4 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.1968, allocations: 4 kB / 412.4 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.197, allocations: 153.8 kB / 412.6 MB, free: 22.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.197, allocations: 0 / 412.6 MB, free: 22.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004514/0.1975, allocations: 265.5 kB / 412.9 MB, free: 22.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.1975, allocations: 81.11 kB / 412.9 MB, free: 22.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.1977, allocations: 195 kB / 413.1 MB, free: 21.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.1977, allocations: 33.7 kB / 413.2 MB, free: 21.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/0.1977, allocations: 148 kB / 413.3 MB, free: 21.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.1978, allocations: 39.44 kB / 413.3 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/0.1978, allocations: 7.938 kB / 413.3 MB, free: 21.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.725e-05/0.1978, allocations: 338.8 kB / 413.7 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.198, allocations: 71.95 kB / 413.7 MB, free: 21.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.1981, allocations: 132.3 kB / 413.9 MB, free: 21.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001363/0.1983, allocations: 87.89 kB / 414 MB, free: 21.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1983, allocations: 0 / 414 MB, free: 21.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000339/0.1986, allocations: 249.2 kB / 414.2 MB, free: 20.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.1986, allocations: 8.922 kB / 414.2 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1986, allocations: 4 kB / 414.2 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.1987, allocations: 4 kB / 414.2 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.1988, allocations: 31.98 kB / 414.3 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1988, allocations: 12.12 kB / 414.3 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.199, allocations: 39.72 kB / 414.3 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.199, allocations: 12.7 kB / 414.3 MB, free: 20.7 MB / 298.7 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.0001112/0.1991, allocations: 137.8 kB / 414.5 MB, free: 20.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.223e-05/0.1992, allocations: 19.81 kB / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.1995, allocations: 227 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.1995, allocations: 112 / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1996, allocations: 3.938 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1996, allocations: 11.92 kB / 414.7 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.1997, allocations: 269.3 kB / 415 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1997, allocations: 0 / 415 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.1999, allocations: 31.97 kB / 415 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1999, allocations: 0 / 415 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.1999, allocations: 4 kB / 415 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1999, allocations: 4 kB / 415 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1999, allocations: 0 / 415 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.2002, allocations: 236.7 kB / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.826e-05/0.2002, allocations: 92.86 kB / 415.3 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.2003, allocations: 8 kB / 415.3 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.2004, allocations: 19.97 kB / 415.4 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.2005, allocations: 19.97 kB / 415.4 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.2005, allocations: 8 kB / 415.4 MB, free: 19.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.726e-05/0.2005, allocations: 148.4 kB / 415.5 MB, free: 19.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2006, allocations: 0 / 415.5 MB, free: 19.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.2008, allocations: 35.91 kB / 415.6 MB, free: 19.34 MB / 298.7 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.0001065/0.2009, allocations: 109.4 kB / 415.7 MB, free: 19.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003019/0.2012, allocations: 179.8 kB / 415.9 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2012, allocations: 4 kB / 415.9 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.2014, allocations: 87.89 kB / 415.9 MB, free: 18.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.2016, allocations: 36.31 kB / 416 MB, free: 18.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004936/0.2022, allocations: 456.6 kB / 416.4 MB, free: 18.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.2023, allocations: 0.736 MB / 417.2 MB, free: 17.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.769e-05/0.2023, allocations: 23.38 kB / 417.2 MB, free: 17.66 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2023, allocations: 0 / 417.2 MB, free: 17.66 MB / 298.7 MB Notification: Performance of Templates: time 0.003097/0.2054, allocations: 2.398 MB / 419.6 MB, free: 15.29 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches