Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001016/0.001015, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205.1 MB / 223.7 MB, free: 8.488 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.0008807/0.0008808, allocations: 98.61 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007525/0.0007525, allocations: 39.94 kB / 327.2 MB, free: 348 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.185, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002441/0.1875, allocations: 1.912 MB / 375.7 MB, free: 44.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007479/0.1883, allocations: 0.6158 MB / 376.3 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.671e-05/0.1884, allocations: 3.312 kB / 376.3 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.1885, allocations: 20.98 kB / 376.4 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.1886, allocations: 35.56 kB / 376.4 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.1888, allocations: 53.73 kB / 376.4 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.189, allocations: 159.4 kB / 376.6 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.1891, allocations: 69.03 kB / 376.7 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.709e-05/0.1892, allocations: 72.39 kB / 376.7 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.1893, allocations: 82.92 kB / 376.8 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.1894, allocations: 8.25 kB / 376.8 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.667e-05/0.1894, allocations: 11.06 kB / 376.8 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.082e-05/0.1895, allocations: 43.34 kB / 376.9 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.375e-05/0.1896, allocations: 87.67 kB / 377 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.1898, allocations: 158.4 kB / 377.1 MB, free: 43.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1898, allocations: 0 / 377.1 MB, free: 43.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1898, allocations: 0 / 377.1 MB, free: 43.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.1898, allocations: 0 / 377.1 MB, free: 43.28 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.0007553/0.1906, allocations: 0.5046 MB / 377.6 MB, free: 42.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.1906, allocations: 16.84 kB / 377.6 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.51e-05/0.1907, allocations: 23.59 kB / 377.7 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.1909, allocations: 238.8 kB / 377.9 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.1909, allocations: 11.94 kB / 377.9 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.1909, allocations: 13.84 kB / 377.9 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.1913, allocations: 194.5 kB / 378.1 MB, free: 42.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1913, allocations: 1.219 kB / 378.1 MB, free: 42.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.1913, allocations: 9.188 kB / 378.1 MB, free: 42.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.1913, allocations: 9.781 kB / 378.1 MB, free: 42.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.1917, allocations: 138.3 kB / 378.3 MB, free: 42.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009576/0.1926, allocations: 0.773 MB / 379 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.193, allocations: 168 kB / 379.2 MB, free: 41.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.1931, allocations: 74.92 kB / 379.3 MB, free: 41.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.674e-05/0.1932, allocations: 2.312 kB / 379.3 MB, free: 41.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.1934, allocations: 142.6 kB / 379.4 MB, free: 41.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.1934, allocations: 3.938 kB / 379.4 MB, free: 41.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005647/0.194, allocations: 256.7 kB / 379.7 MB, free: 41.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.194, allocations: 84.23 kB / 379.8 MB, free: 41.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.1942, allocations: 211.1 kB / 380 MB, free: 40.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.1943, allocations: 27.14 kB / 380 MB, free: 40.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.1943, allocations: 146.7 kB / 380.1 MB, free: 40.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.1944, allocations: 42.23 kB / 380.2 MB, free: 40.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-05/0.1944, allocations: 39.89 kB / 380.2 MB, free: 40.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.015e-05/0.1945, allocations: 332.8 kB / 380.5 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.1947, allocations: 67.36 kB / 380.6 MB, free: 40.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1948, allocations: 132.1 kB / 380.7 MB, free: 40.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.1952, allocations: 215.1 kB / 380.9 MB, free: 40.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1952, allocations: 0 / 380.9 MB, free: 40.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004312/0.1956, allocations: 237.7 kB / 381.2 MB, free: 40 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.1956, allocations: 5.5 kB / 381.2 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1956, allocations: 7.219 kB / 381.2 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1957, allocations: 2.281 kB / 381.2 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.1958, allocations: 35.69 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.1959, allocations: 7.938 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.196, allocations: 31.94 kB / 381.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.1961, allocations: 6.781 kB / 381.3 MB, free: 39.96 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,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 9.191e-05/0.1962, allocations: 139.8 kB / 381.4 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.1962, allocations: 23.94 kB / 381.4 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004265/0.1966, allocations: 215.5 kB / 381.6 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.1967, allocations: 2.562 kB / 381.6 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1967, allocations: 1.312 kB / 381.6 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1967, allocations: 0 / 381.6 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/0.1969, allocations: 271.7 kB / 381.9 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1969, allocations: 1.531 kB / 381.9 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.1971, allocations: 19.17 kB / 381.9 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1971, allocations: 5.531 kB / 381.9 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.1971, allocations: 5.422 kB / 381.9 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.1971, allocations: 5.062 kB / 382 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1971, allocations: 0 / 382 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/0.1977, allocations: 0.8771 MB / 382.8 MB, free: 38.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.255e-05/0.1978, allocations: 101.8 kB / 382.9 MB, free: 38.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.1978, allocations: 5.094 kB / 382.9 MB, free: 38.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.1979, allocations: 18.11 kB / 382.9 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.198, allocations: 18.81 kB / 383 MB, free: 38.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.198, allocations: 7.406 kB / 383 MB, free: 38.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.27e-05/0.1981, allocations: 148.3 kB / 383.1 MB, free: 38.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1981, allocations: 0 / 383.1 MB, free: 38.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003461/0.1984, allocations: 41.22 kB / 383.2 MB, free: 38.36 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.766e-05/0.1985, allocations: 104.9 kB / 383.3 MB, free: 38.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000315/0.1989, allocations: 165.9 kB / 383.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1989, allocations: 1.281 kB / 383.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.199, allocations: 85.52 kB / 383.5 MB, free: 38.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.1993, allocations: 43.7 kB / 383.6 MB, free: 38.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005755/0.1999, allocations: 0.5706 MB / 384.1 MB, free: 37.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.2001, allocations: 0.7464 MB / 384.9 MB, free: 36.95 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.2002, allocations: 37.55 kB / 384.9 MB, free: 36.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.2002, allocations: 23.77 kB / 384.9 MB, free: 36.91 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2002, allocations: 0 / 384.9 MB, free: 36.91 MB / 298.7 MB Notification: Performance of Templates: time 0.00382/0.2041, allocations: 1.96 MB / 386.9 MB, free: 35.92 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches