Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002877/0.002881, allocations: 187 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.197/3.197, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001651/0.001651, allocations: 94.8 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006041/0.0006043, allocations: 8 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1663, allocations: 47.57 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004256/0.1707, allocations: 1.517 MB / 376 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002296/0.173, allocations: 0.5895 MB / 376.6 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/0.1733, allocations: 3.938 kB / 376.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.1735, allocations: 15.86 kB / 376.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002889/0.1738, allocations: 35.88 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.1743, allocations: 51.88 kB / 376.7 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000384/0.1747, allocations: 111.7 kB / 376.8 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.175, allocations: 65.42 kB / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.1753, allocations: 47.78 kB / 377 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.1755, allocations: 67.61 kB / 377 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.768e-05/0.1756, allocations: 4 kB / 377 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.1757, allocations: 15.94 kB / 377 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1759, allocations: 35.84 kB / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.451e-05/0.176, allocations: 49.58 kB / 377.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003375/0.1763, allocations: 116 kB / 377.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1764, allocations: 0 / 377.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1764, allocations: 0 / 377.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1764, allocations: 0 / 377.2 MB, free: 12.69 MB / 282.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.001809/0.1782, allocations: 498.7 kB / 377.7 MB, free: 12.16 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/0.1783, allocations: 8.031 kB / 377.7 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.1785, allocations: 27.72 kB / 377.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.179, allocations: 226.6 kB / 378 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/0.1791, allocations: 12.23 kB / 378 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.1792, allocations: 19.94 kB / 378 MB, free: 11.83 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008551/0.18, allocations: 191 kB / 378.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.1801, allocations: 4 kB / 378.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.547e-05/0.1802, allocations: 8 kB / 378.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.289e-05/0.1802, allocations: 11.88 kB / 378.2 MB, free: 11.6 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008602/0.1811, allocations: 147.9 kB / 378.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002556/0.1837, allocations: 0.7897 MB / 379.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/0.1846, allocations: 177 kB / 379.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.713e-05/0.1847, allocations: 0 / 379.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005959/0.1853, allocations: 145.8 kB / 379.5 MB, free: 10.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 4.127e-06/0.1853, allocations: 4 kB / 379.5 MB, free: 10.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.001482/0.1868, allocations: 265.5 kB / 379.7 MB, free: 9.984 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.495e-05/0.187, allocations: 81.09 kB / 379.8 MB, free: 9.887 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004385/0.1875, allocations: 210.9 kB / 380 MB, free: 9.672 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.201e-05/0.1875, allocations: 33.7 kB / 380.1 MB, free: 9.633 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.1878, allocations: 202.5 kB / 380.3 MB, free: 9.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.614e-05/0.1879, allocations: 43.45 kB / 380.3 MB, free: 9.387 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.905e-05/0.1879, allocations: 3.938 kB / 380.3 MB, free: 9.383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.1881, allocations: 318.8 kB / 380.6 MB, free: 9.062 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004444/0.1886, allocations: 67.95 kB / 380.7 MB, free: 8.996 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004887/0.1891, allocations: 134.8 kB / 380.8 MB, free: 8.84 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.1896, allocations: 79.97 kB / 380.9 MB, free: 8.762 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.1896, allocations: 0 / 380.9 MB, free: 8.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001212/0.1909, allocations: 241.4 kB / 381.1 MB, free: 8.52 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/0.191, allocations: 8 kB / 381.1 MB, free: 8.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.191, allocations: 0 / 381.1 MB, free: 8.512 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/0.191, allocations: 4 kB / 381.1 MB, free: 8.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.1915, allocations: 39.97 kB / 381.2 MB, free: 8.469 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.836e-05/0.1916, allocations: 3.938 kB / 381.2 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.1921, allocations: 43.84 kB / 381.2 MB, free: 8.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/0.1921, allocations: 12.2 kB / 381.2 MB, free: 8.41 MB / 282.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.0003006/0.1924, allocations: 145.7 kB / 381.4 MB, free: 8.258 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.817e-05/0.1925, allocations: 15.81 kB / 381.4 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.1938, allocations: 235.5 kB / 381.6 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.1939, allocations: 4 kB / 381.6 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.1939, allocations: 0 / 381.6 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.1939, allocations: 7.922 kB / 381.6 MB, free: 7.992 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006227/0.1946, allocations: 265.5 kB / 381.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1946, allocations: 0 / 381.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.1949, allocations: 19.98 kB / 381.9 MB, free: 7.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.679e-05/0.195, allocations: 4 kB / 381.9 MB, free: 7.66 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.976e-05/0.195, allocations: 4 kB / 381.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.195, allocations: 7.984 kB / 381.9 MB, free: 7.648 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1951, allocations: 0 / 381.9 MB, free: 7.648 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.1961, allocations: 255.1 kB / 382.2 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.1963, allocations: 96.83 kB / 382.3 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.732e-05/0.1964, allocations: 0 / 382.3 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000347/0.1968, allocations: 23.97 kB / 382.3 MB, free: 7.238 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.1969, allocations: 15.98 kB / 382.3 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.197, allocations: 4 kB / 382.3 MB, free: 7.219 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003021/0.1973, allocations: 152.3 kB / 382.5 MB, free: 7.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.1973, allocations: 4 kB / 382.5 MB, free: 7.066 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006653/0.198, allocations: 39.94 kB / 382.5 MB, free: 7.027 MB / 282.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.0002744/0.1983, allocations: 99.25 kB / 382.6 MB, free: 6.922 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.1994, allocations: 179.9 kB / 382.8 MB, free: 6.746 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.1994, allocations: 0 / 382.8 MB, free: 6.746 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004654/0.1999, allocations: 91.89 kB / 382.9 MB, free: 6.656 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007023/0.2006, allocations: 35.92 kB / 382.9 MB, free: 6.621 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.2023, allocations: 459.9 kB / 383.3 MB, free: 6.137 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.2029, allocations: 0.7438 MB / 384.1 MB, free: 5.367 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.2031, allocations: 15.62 kB / 384.1 MB, free: 5.352 MB / 282.7 MB Notification: Performance of SimCode: time 1.513e-06/0.2031, allocations: 4 kB / 384.1 MB, free: 5.348 MB / 282.7 MB Notification: Performance of Templates: time 0.01065/0.2138, allocations: 2.361 MB / 386.5 MB, free: 2.988 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches