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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001432/0.001432, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.155/1.155, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007349/0.0007349, allocations: 85.55 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003292/0.0003293, allocations: 11.98 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.184, allocations: 47.56 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00155/0.1856, allocations: 1.525 MB / 376.7 MB, free: 44.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007699/0.1864, allocations: 0.5869 MB / 377.3 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.921e-05/0.1865, allocations: 3 kB / 377.3 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.286e-05/0.1866, allocations: 16.8 kB / 377.3 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.1867, allocations: 40.16 kB / 377.3 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.1869, allocations: 41.52 kB / 377.4 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.1871, allocations: 155 kB / 377.5 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.1873, allocations: 71.7 kB / 377.6 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.969e-05/0.1873, allocations: 61.67 kB / 377.7 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.636e-05/0.1875, allocations: 60.36 kB / 377.7 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.1875, allocations: 9.969 kB / 377.7 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.25e-05/0.1875, allocations: 7.75 kB / 377.7 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.435e-05/0.1876, allocations: 29.47 kB / 377.8 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.782e-05/0.1877, allocations: 99.16 kB / 377.9 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.1878, allocations: 109.8 kB / 378 MB, free: 43.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1878, allocations: 5.188 kB / 378 MB, free: 43.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1878, allocations: 0 / 378 MB, free: 43.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.1878, allocations: 0 / 378 MB, free: 43.29 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.0006718/0.1885, allocations: 498.8 kB / 378.5 MB, free: 42.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.1886, allocations: 8.281 kB / 378.5 MB, free: 42.83 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.1886, allocations: 47.61 kB / 378.5 MB, free: 42.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.1886, allocations: 24.03 kB / 378.5 MB, free: 42.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.1888, allocations: 243.9 kB / 378.8 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.1888, allocations: 10.06 kB / 378.8 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.1889, allocations: 18 kB / 378.8 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.1892, allocations: 198.7 kB / 379 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1892, allocations: 0 / 379 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1892, allocations: 9.266 kB / 379 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1893, allocations: 9.562 kB / 379 MB, free: 42.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.1895, allocations: 152.1 kB / 379.2 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008395/0.1904, allocations: 0.7868 MB / 380 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/0.1907, allocations: 170.6 kB / 380.1 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.1908, allocations: 78.8 kB / 380.2 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.1909, allocations: 5.938 kB / 380.2 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.1911, allocations: 149.1 kB / 380.3 MB, free: 41.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.1911, allocations: 0 / 380.3 MB, free: 41.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004917/0.1916, allocations: 267.8 kB / 380.6 MB, free: 41.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.1916, allocations: 83.3 kB / 380.7 MB, free: 41.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.1918, allocations: 205.7 kB / 380.9 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.1918, allocations: 36.16 kB / 380.9 MB, free: 40.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.535e-05/0.1918, allocations: 133.8 kB / 381.1 MB, free: 40.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.1919, allocations: 42.86 kB / 381.1 MB, free: 40.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.248e-06/0.1919, allocations: 4 kB / 381.1 MB, free: 40.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.343e-05/0.1919, allocations: 335.9 kB / 381.4 MB, free: 40.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1921, allocations: 71.23 kB / 381.5 MB, free: 40.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.1922, allocations: 139.1 kB / 381.6 MB, free: 40.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/0.1925, allocations: 212.7 kB / 381.8 MB, free: 40.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1925, allocations: 1.062 kB / 381.8 MB, free: 40.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003816/0.1929, allocations: 250.9 kB / 382.1 MB, free: 39.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1929, allocations: 5.906 kB / 382.1 MB, free: 39.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.193, allocations: 2.375 kB / 382.1 MB, free: 39.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.193, allocations: 2.531 kB / 382.1 MB, free: 39.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.1931, allocations: 42.16 kB / 382.1 MB, free: 39.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.1932, allocations: 3.25 kB / 382.1 MB, free: 39.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.1933, allocations: 42.3 kB / 382.2 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.1933, allocations: 6.406 kB / 382.2 MB, free: 39.95 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 9.12e-05/0.1934, allocations: 147.5 kB / 382.3 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.1935, allocations: 15.56 kB / 382.4 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.1939, allocations: 223.6 kB / 382.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.1939, allocations: 2.25 kB / 382.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1939, allocations: 1.25 kB / 382.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1939, allocations: 5.141 kB / 382.6 MB, free: 39.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.1941, allocations: 270.9 kB / 382.8 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1941, allocations: 1.156 kB / 382.8 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.1942, allocations: 24.95 kB / 382.9 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1942, allocations: 1.312 kB / 382.9 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.1942, allocations: 9.391 kB / 382.9 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1942, allocations: 1.5 kB / 382.9 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1942, allocations: 1.156 kB / 382.9 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003297/0.1946, allocations: 238.3 kB / 383.1 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/0.1946, allocations: 89.23 kB / 383.2 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.1946, allocations: 5.531 kB / 383.2 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.1948, allocations: 22.84 kB / 383.2 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.1949, allocations: 16.42 kB / 383.2 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.1949, allocations: 11.2 kB / 383.3 MB, free: 39.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.59e-05/0.195, allocations: 146.5 kB / 383.4 MB, free: 39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.195, allocations: 96 / 383.4 MB, free: 39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000236/0.1952, allocations: 44.94 kB / 383.4 MB, free: 38.98 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.000505/0.1957, allocations: 0.7681 MB / 384.2 MB, free: 38.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003458/0.1961, allocations: 189.7 kB / 384.4 MB, free: 38.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1961, allocations: 0 / 384.4 MB, free: 38.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.1963, allocations: 90.98 kB / 384.5 MB, free: 38.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.1966, allocations: 42.3 kB / 384.5 MB, free: 38.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.1981, allocations: 1.23 MB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.1982, allocations: 0.736 MB / 386.5 MB, free: 36.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.772e-05/0.1983, allocations: 57.75 kB / 386.6 MB, free: 36.52 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.1983, allocations: 0 / 386.6 MB, free: 36.52 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.858/3.056, allocations: 2.78 MB / 389.3 MB, free: 33.96 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1.fmu > 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) "" Variables in the reference:time,multiSwitch.u[1],multiSwitch.u[2] Variables in the result:add.k[1],add.k[2],add.nu,add.significantDigits,add.u[1],add.u[2],add.y,booleanPulse1.Twidth,booleanPulse1.period,booleanPulse1.pulseStart,booleanPulse1.startTime,booleanPulse1.width,booleanPulse1.y,booleanPulse2.Twidth,booleanPulse2.period,booleanPulse2.pulseStart,booleanPulse2.startTime,booleanPulse2.width,booleanPulse2.y,integerConstant.k,integerConstant.y,integerStep.height,integerStep.offset,integerStep.startTime,integerStep.y,linearDependency1.k1,linearDependency1.k2,linearDependency1.u1,linearDependency1.u2,linearDependency1.y,linearDependency1.y0,minMax.nu,minMax.u[1],minMax.u[2],minMax.yMax,minMax.yMin,multiSwitch.expr[1],multiSwitch.expr[2],multiSwitch.firstActiveIndex,multiSwitch.nu,multiSwitch.precision,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.y,multiSwitch.y_default,product.nu,product.significantDigits,product.u[1],product.u[2],product.y,showValue.number,showValue.numberPort,showValue.showNumber,showValue.significantDigits,showValue.use_numberPort,showValue1.number,showValue1.numberPort,showValue1.showNumber,showValue1.significantDigits,showValue1.use_numberPort,showValue3.number,showValue3.showNumber,showValue3.significantDigits,showValue3.use_numberPort,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time