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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008938/0.0008938, allocations: 190.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.267/1.267, allocations: 226.5 MB / 244.7 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007339/0.0007339, allocations: 95.61 kB / 296.7 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002005/0.0002005, allocations: 4 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1793, allocations: 51.3 MB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001338/0.1807, allocations: 1.536 MB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006888/0.1814, allocations: 0.5829 MB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.819e-05/0.1815, allocations: 7.938 kB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.048e-05/0.1816, allocations: 17.61 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.1817, allocations: 27.72 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.1819, allocations: 53.89 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.182, allocations: 155.4 kB / 410.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.1821, allocations: 57.59 kB / 410.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.1823, allocations: 63.7 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.585e-05/0.1824, allocations: 59.64 kB / 410.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.1824, allocations: 8.812 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.757e-05/0.1825, allocations: 23.98 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.244e-05/0.1825, allocations: 31.84 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.768e-05/0.1826, allocations: 94.08 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.1827, allocations: 109 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1827, allocations: 4.719 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1827, allocations: 0 / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.686e-06/0.1827, allocations: 0.5312 kB / 410.9 MB, free: 24.83 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.0005927/0.1833, allocations: 0.4947 MB / 411.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.974e-05/0.1834, allocations: 8.031 kB / 411.4 MB, free: 24.28 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.809e-05/0.1834, allocations: 53.14 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.1835, allocations: 28.66 kB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.1837, allocations: 235.7 kB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1837, allocations: 12.66 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.1837, allocations: 16.36 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.184, allocations: 211.9 kB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1841, allocations: 3.938 kB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.1841, allocations: 11.94 kB / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.1841, allocations: 4 kB / 412 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000245/0.1843, allocations: 147.9 kB / 412.2 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008028/0.1852, allocations: 0.7974 MB / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.1854, allocations: 165 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.1855, allocations: 81.8 kB / 413.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.1856, allocations: 0 / 413.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001932/0.1858, allocations: 141 kB / 413.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.1858, allocations: 3.938 kB / 413.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004447/0.1862, allocations: 266 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.688e-05/0.1863, allocations: 89.03 kB / 413.7 MB, free: 21.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1864, allocations: 202.9 kB / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.1864, allocations: 33.7 kB / 413.9 MB, free: 21.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.1865, allocations: 140.1 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.1865, allocations: 47.44 kB / 414.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/0.1866, allocations: 4 kB / 414.1 MB, free: 21.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.248e-05/0.1866, allocations: 330.8 kB / 414.4 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.1868, allocations: 71.95 kB / 414.5 MB, free: 21.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.1869, allocations: 135.6 kB / 414.6 MB, free: 20.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.1872, allocations: 210.7 kB / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1872, allocations: 0 / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003355/0.1875, allocations: 249.1 kB / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.1875, allocations: 4 kB / 415.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1875, allocations: 7.984 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.1876, allocations: 4.094 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.1877, allocations: 44.16 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.1877, allocations: 7.938 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.1879, allocations: 35.81 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.1879, allocations: 8 kB / 415.2 MB, free: 20.27 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.561e-05/0.188, allocations: 141.7 kB / 415.3 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/0.188, allocations: 23.81 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003497/0.1884, allocations: 218.9 kB / 415.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.1884, allocations: 3.984 kB / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1884, allocations: 0 / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1884, allocations: 4 kB / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.1886, allocations: 269.3 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1886, allocations: 4 kB / 415.8 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.1887, allocations: 27.97 kB / 415.9 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1887, allocations: 3.938 kB / 415.9 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1887, allocations: 4 kB / 415.9 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1887, allocations: 4 kB / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1887, allocations: 0 / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.1891, allocations: 233.6 kB / 416.1 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.1891, allocations: 88.92 kB / 416.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.1891, allocations: 8 kB / 416.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.1893, allocations: 23.97 kB / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.372e-05/0.1893, allocations: 19.97 kB / 416.2 MB, free: 19.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.1893, allocations: 8 kB / 416.2 MB, free: 19.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.571e-05/0.1894, allocations: 152.3 kB / 416.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1894, allocations: 0 / 416.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002191/0.1896, allocations: 39.84 kB / 416.4 MB, free: 18.9 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.0004619/0.1901, allocations: 0.7685 MB / 417.2 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.1904, allocations: 184.7 kB / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1904, allocations: 0 / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.1906, allocations: 88.44 kB / 417.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.1909, allocations: 32.36 kB / 417.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.1922, allocations: 1.247 MB / 418.7 MB, free: 16.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.1923, allocations: 0.7436 MB / 419.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.997e-05/0.1924, allocations: 51.42 kB / 419.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.1924, allocations: 0 / 419.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.821/3.013, allocations: 2.772 MB / 422.3 MB, free: 12.88 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/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) "" 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.f,sine.offset,sine.phase,sine.startTime,sine.y,time