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.0009793/0.0009791, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.5 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006943/0.0006943, allocations: 99.23 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000214/0.0002141, allocations: 4 kB / 356.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1907, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001471/0.1922, allocations: 1.531 MB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007044/0.1929, allocations: 0.5861 MB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.302e-05/0.193, allocations: 8.469 kB / 410.2 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001/0.1931, allocations: 17.86 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.1932, allocations: 23.73 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.1934, allocations: 56.56 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.1936, allocations: 147.4 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1937, allocations: 70.44 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.1939, allocations: 55.72 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.375e-05/0.194, allocations: 67.61 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.17e-05/0.194, allocations: 8.688 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.686e-05/0.1941, allocations: 15.94 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.526e-05/0.1941, allocations: 36.72 kB / 410.6 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6e-05/0.1942, allocations: 85.31 kB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.1943, allocations: 129.4 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1943, allocations: 0 / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1943, allocations: 4 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1944, allocations: 0 / 410.9 MB, free: 24.88 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.0006276/0.195, allocations: 0.4909 MB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.782e-05/0.195, allocations: 8.031 kB / 411.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.1952, allocations: 36.64 kB / 411.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.1953, allocations: 235.7 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.1954, allocations: 8.656 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.1954, allocations: 20.38 kB / 411.7 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.1957, allocations: 200.1 kB / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1957, allocations: 0 / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.1957, allocations: 4 kB / 411.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.1957, allocations: 7.938 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.196, allocations: 155.8 kB / 412 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008203/0.1968, allocations: 0.7818 MB / 412.8 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.1971, allocations: 177 kB / 413 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.1972, allocations: 73.97 kB / 413 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.1973, allocations: 11.97 kB / 413.1 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.1975, allocations: 149.9 kB / 413.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1975, allocations: 0 / 413.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004596/0.198, allocations: 261.9 kB / 413.5 MB, free: 22.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.198, allocations: 85.11 kB / 413.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1981, allocations: 202.9 kB / 413.7 MB, free: 21.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1982, allocations: 29.7 kB / 413.8 MB, free: 21.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.475e-05/0.1982, allocations: 148.1 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.1983, allocations: 35.45 kB / 413.9 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.1983, allocations: 12 kB / 414 MB, free: 21.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.573e-05/0.1983, allocations: 326.8 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.1985, allocations: 71.95 kB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.1986, allocations: 132.3 kB / 414.5 MB, free: 20.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.1989, allocations: 222.7 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1989, allocations: 3.938 kB / 414.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003439/0.1992, allocations: 249.2 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.1993, allocations: 8 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1993, allocations: 0 / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1993, allocations: 4 kB / 415 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.1994, allocations: 39.92 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.1995, allocations: 0 / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.1996, allocations: 44.05 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.1996, allocations: 15.94 kB / 415 MB, free: 20.38 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 8.742e-05/0.1997, allocations: 145.7 kB / 415.2 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.1997, allocations: 15.81 kB / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00036/0.2001, allocations: 222.9 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2001, allocations: 4 kB / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2001, allocations: 0 / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2001, allocations: 0 / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.2003, allocations: 277.3 kB / 415.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2003, allocations: 0 / 415.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.2004, allocations: 19.98 kB / 415.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2004, allocations: 4 kB / 415.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.2005, allocations: 8 kB / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2005, allocations: 0 / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2005, allocations: 3.938 kB / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.2008, allocations: 236.7 kB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.953e-05/0.2008, allocations: 92.92 kB / 416.1 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.2009, allocations: 7.984 kB / 416.1 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.201, allocations: 19.98 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/0.2011, allocations: 19.97 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.2011, allocations: 4 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.983e-05/0.2012, allocations: 148.4 kB / 416.3 MB, free: 19.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2012, allocations: 0 / 416.3 MB, free: 19.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002254/0.2014, allocations: 43.84 kB / 416.3 MB, free: 19.02 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.0001048/0.2015, allocations: 105.4 kB / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003166/0.2018, allocations: 180 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2018, allocations: 192 / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.202, allocations: 91.89 kB / 416.7 MB, free: 18.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.2023, allocations: 39.84 kB / 416.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005156/0.2028, allocations: 457.5 kB / 417.1 MB, free: 18.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.203, allocations: 0.7358 MB / 417.9 MB, free: 17.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.1e-05/0.203, allocations: 15.44 kB / 417.9 MB, free: 17.35 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.203, allocations: 4 kB / 417.9 MB, free: 17.35 MB / 298.7 MB Notification: Performance of Templates: time 0.003111/0.2062, allocations: 2.4 MB / 420.3 MB, free: 14.96 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