Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009889/0.000989, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 226.6 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007687/0.0007687, allocations: 97.45 kB / 296.8 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002057/0.0002058, allocations: 4 kB / 356.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1926, allocations: 51.29 MB / 408 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.002125/0.1948, allocations: 2.45 MB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.1964, allocations: 1.264 MB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.1966, allocations: 0 / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003815/0.197, allocations: 160.6 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000394/0.1974, allocations: 209.4 kB / 412.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002971/0.1977, allocations: 147 kB / 412.3 MB, free: 23.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003004/0.198, allocations: 415.7 kB / 412.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.1981, allocations: 108 kB / 412.8 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1983, allocations: 162.4 kB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.1984, allocations: 191.3 kB / 413.1 MB, free: 22.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.1985, allocations: 16 kB / 413.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.1986, allocations: 55.92 kB / 413.2 MB, free: 22.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.646e-05/0.1987, allocations: 75.73 kB / 413.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.1988, allocations: 200.8 kB / 413.4 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.1991, allocations: 364 kB / 413.8 MB, free: 21.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1991, allocations: 0 / 413.8 MB, free: 21.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1991, allocations: 4 kB / 413.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1991, allocations: 0 / 413.8 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.000692/0.1998, allocations: 0.6308 MB / 414.4 MB, free: 21.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.1998, allocations: 8.031 kB / 414.4 MB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.591e-05/0.1999, allocations: 48.38 kB / 414.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.2002, allocations: 342.6 kB / 414.8 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.2002, allocations: 20.75 kB / 414.8 MB, free: 20.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.543e-05/0.2003, allocations: 24.12 kB / 414.9 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.2006, allocations: 289.5 kB / 415.2 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.2007, allocations: 0 / 415.2 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.2007, allocations: 8 kB / 415.2 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2007, allocations: 4 kB / 415.2 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.2009, allocations: 149.6 kB / 415.3 MB, free: 20.33 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009895/0.2019, allocations: 0.84 MB / 416.2 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.2023, allocations: 191.1 kB / 416.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.2024, allocations: 76.83 kB / 416.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.2024, allocations: 4 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.2027, allocations: 140.8 kB / 416.6 MB, free: 19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.2027, allocations: 0 / 416.6 MB, free: 19 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006423/0.2033, allocations: 410.7 kB / 417 MB, free: 18.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.2034, allocations: 312.4 kB / 417.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.2037, allocations: 437.6 kB / 417.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.2037, allocations: 33.7 kB / 417.7 MB, free: 17.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.146e-05/0.2038, allocations: 208.2 kB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.2039, allocations: 82.83 kB / 418 MB, free: 17.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.02e-05/0.2039, allocations: 4 kB / 418 MB, free: 17.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.591e-05/0.204, allocations: 354.8 kB / 418.4 MB, free: 17.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.2041, allocations: 59.98 kB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.2042, allocations: 172 kB / 418.6 MB, free: 16.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.2045, allocations: 167.3 kB / 418.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2045, allocations: 3.938 kB / 418.8 MB, free: 16.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003512/0.2048, allocations: 273.9 kB / 419 MB, free: 16.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.2049, allocations: 8 kB / 419 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2049, allocations: 7.984 kB / 419 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001045/0.205, allocations: 28.84 kB / 419.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.2052, allocations: 51.97 kB / 419.1 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009284/0.2061, allocations: 1.448 MB / 420.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.2063, allocations: 31.72 kB / 420.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.2064, allocations: 12 kB / 420.6 MB, free: 14.61 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (27): * Single equations (assignments): 26 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.2065, allocations: 172 kB / 420.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.2065, allocations: 43.53 kB / 420.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/0.2066, allocations: 43.61 kB / 420.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2066, allocations: 0 / 420.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.2066, allocations: 0 / 420.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003349/0.207, allocations: 0.5865 MB / 421.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006596/0.2076, allocations: 0.7001 MB / 422.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2076, allocations: 96 / 422.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.2078, allocations: 55.84 kB / 422.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2078, allocations: 0 / 422.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.2079, allocations: 8 kB / 422.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.2079, allocations: 0 / 422.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2079, allocations: 0 / 422.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004188/0.2083, allocations: 400 kB / 422.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.926e-05/0.2084, allocations: 140.5 kB / 422.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/0.2085, allocations: 11.98 kB / 422.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.2087, allocations: 19.97 kB / 422.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.337e-05/0.2087, allocations: 11.98 kB / 422.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.2087, allocations: 11.98 kB / 422.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002389/0.209, allocations: 311.1 kB / 423.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.209, allocations: 0 / 423.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003362/0.2093, allocations: 91.94 kB / 423.2 MB, free: 11.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * 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 (23): * Single equations (assignments): 21 * 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.0007773/0.2101, allocations: 418.2 kB / 423.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004685/0.2106, allocations: 318.4 kB / 423.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2106, allocations: 4 kB / 423.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.2107, allocations: 83.91 kB / 424 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005078/0.2113, allocations: 105.5 kB / 424.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.2124, allocations: 0.9583 MB / 425 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/0.2125, allocations: 0.7963 MB / 425.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.036e-05/0.2126, allocations: 35.44 kB / 425.9 MB, free: 9.188 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2126, allocations: 4 kB / 425.9 MB, free: 9.184 MB / 298.7 MB Notification: Performance of Templates: time 0.00613/0.2188, allocations: 5.823 MB / 431.7 MB, free: 3.398 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches