Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009029/0.0009029, allocations: 199.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007312/0.0007312, allocations: 89.67 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002143/0.0002144, allocations: 4 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1867/0.1869, allocations: 51.28 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.002263/0.1893, allocations: 2.594 MB / 410.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.1906, allocations: 1.257 MB / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.1908, allocations: 8.562 kB / 412 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.1911, allocations: 124.2 kB / 412.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003269/0.1915, allocations: 176.9 kB / 412.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004033/0.1919, allocations: 148.6 kB / 412.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.1923, allocations: 406.1 kB / 412.8 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.1924, allocations: 97.12 kB / 412.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.1926, allocations: 155.3 kB / 413.1 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.1928, allocations: 163.3 kB / 413.2 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.1928, allocations: 16 kB / 413.2 MB, free: 22.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.1929, allocations: 51.92 kB / 413.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.193, allocations: 63.75 kB / 413.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.1932, allocations: 196.8 kB / 413.5 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.1935, allocations: 328.4 kB / 413.9 MB, free: 21.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.1935, allocations: 4 kB / 413.9 MB, free: 21.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1935, allocations: 0 / 413.9 MB, free: 21.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1935, allocations: 0 / 413.9 MB, free: 21.96 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0007843/0.1943, allocations: 0.6091 MB / 414.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1943, allocations: 12.03 kB / 414.5 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.192e-05/0.1944, allocations: 71.12 kB / 414.6 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.773e-05/0.1945, allocations: 44.47 kB / 414.6 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.1948, allocations: 328.3 kB / 414.9 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.1949, allocations: 20.94 kB / 414.9 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.45e-05/0.1949, allocations: 27.94 kB / 415 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.1954, allocations: 307.1 kB / 415.3 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1954, allocations: 4 kB / 415.3 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.1954, allocations: 19.98 kB / 415.3 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.1955, allocations: 8 kB / 415.3 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003432/0.1958, allocations: 178.1 kB / 415.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.197, allocations: 0.8793 MB / 416.4 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005089/0.1976, allocations: 252.5 kB / 416.6 MB, free: 19.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.1977, allocations: 101.4 kB / 416.7 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.1978, allocations: 8.219 kB / 416.7 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.1981, allocations: 159.2 kB / 416.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 2.084e-06/0.1981, allocations: 0 / 416.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.002093/0.2002, allocations: 1.308 MB / 418.2 MB, free: 17.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.2003, allocations: 191.9 kB / 418.4 MB, free: 17.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.2006, allocations: 332.5 kB / 418.7 MB, free: 16.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.2006, allocations: 33.69 kB / 418.7 MB, free: 16.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.341e-05/0.2007, allocations: 192.6 kB / 418.9 MB, free: 16.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.374e-05/0.2008, allocations: 142 kB / 419 MB, free: 16.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.715e-05/0.2008, allocations: 12 kB / 419.1 MB, free: 16.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.052e-05/0.2009, allocations: 350.7 kB / 419.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.2011, allocations: 80.84 kB / 419.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.2013, allocations: 189.1 kB / 419.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.2017, allocations: 242.2 kB / 419.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2017, allocations: 0 / 419.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005207/0.2022, allocations: 354.3 kB / 420.2 MB, free: 15.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2022, allocations: 8 kB / 420.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2022, allocations: 0 / 420.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-05/0.2023, allocations: 20.84 kB / 420.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.2027, allocations: 87.91 kB / 420.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007418/0.2034, allocations: 1.288 MB / 421.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.2037, allocations: 19.97 kB / 421.7 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.2037, allocations: 12 kB / 421.7 MB, free: 13.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.2039, allocations: 172.3 kB / 421.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.701e-05/0.2039, allocations: 39.53 kB / 421.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.372e-05/0.204, allocations: 47.95 kB / 421.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.204, allocations: 7.938 kB / 421.9 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.204, allocations: 0 / 421.9 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004945/0.2045, allocations: 0.6611 MB / 422.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009917/0.2055, allocations: 0.8564 MB / 423.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2055, allocations: 4.062 kB / 423.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.2059, allocations: 71.91 kB / 423.5 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.2059, allocations: 4 kB / 423.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.2059, allocations: 19.92 kB / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.206, allocations: 0 / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.206, allocations: 4.125 kB / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006744/0.2066, allocations: 0.541 MB / 424.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.2068, allocations: 136.7 kB / 424.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.047e-05/0.2068, allocations: 11.98 kB / 424.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.2071, allocations: 23.94 kB / 424.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.2072, allocations: 23.83 kB / 424.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.027e-05/0.2072, allocations: 23.92 kB / 424.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001973/0.2074, allocations: 235.1 kB / 424.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2074, allocations: 0 / 424.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004094/0.2078, allocations: 104.6 kB / 424.6 MB, free: 10.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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.00137/0.2092, allocations: 1.391 MB / 426 MB, free: 9.082 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004817/0.2097, allocations: 370.5 kB / 426.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2097, allocations: 0 / 426.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.2099, allocations: 139.8 kB / 426.5 MB, free: 8.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.2104, allocations: 89.11 kB / 426.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.213, allocations: 2.538 MB / 429.2 MB, free: 5.863 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.2132, allocations: 0.8041 MB / 430 MB, free: 5.031 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.2134, allocations: 135.4 kB / 430.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2134, allocations: 0 / 430.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.309/3.522, allocations: 6.737 MB / 436.8 MB, free: 14.15 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches