Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 107.2 kB / 17.06 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 200 kB / 18.01 MB, free: 4.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 43.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2641, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004463/0.2686, allocations: 2.844 MB / 403.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.2708, allocations: 1.266 MB / 404.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.271, allocations: 4 kB / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005444/0.2716, allocations: 179.1 kB / 404.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004791/0.2721, allocations: 206.8 kB / 404.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.2726, allocations: 175.2 kB / 404.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005184/0.2731, allocations: 453.9 kB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.2733, allocations: 107.5 kB / 405.4 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.2736, allocations: 179.3 kB / 405.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002617/0.2738, allocations: 207.2 kB / 405.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.2739, allocations: 32 kB / 405.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.2741, allocations: 67.97 kB / 405.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.2742, allocations: 83.62 kB / 406 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.2744, allocations: 195 kB / 406.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.275, allocations: 492.9 kB / 406.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.275, allocations: 0 / 406.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.275, allocations: 0 / 406.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.275, allocations: 7.938 kB / 406.7 MB, free: 2.344 MB / 318.1 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.001104/0.2761, allocations: 0.7082 MB / 407.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2762, allocations: 8.031 kB / 407.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.2763, allocations: 59.16 kB / 407.4 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.696e-05/0.2764, allocations: 48.66 kB / 407.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.2769, allocations: 354.9 kB / 407.8 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.2769, allocations: 20.81 kB / 407.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.277, allocations: 27.92 kB / 407.9 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004886/0.2775, allocations: 297.5 kB / 408.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.2775, allocations: 0 / 408.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/0.2776, allocations: 12 kB / 408.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.2776, allocations: 7.938 kB / 408.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003027/0.2779, allocations: 153.7 kB / 408.3 MB, free: 0.5312 MB / 318.1 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.001346/0.2792, allocations: 0.8401 MB / 409.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000393/0.2796, allocations: 183.1 kB / 409.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.2798, allocations: 74.33 kB / 409.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.2798, allocations: 11.94 kB / 409.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002576/0.2801, allocations: 131.3 kB / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.2801, allocations: 0 / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008736/0.281, allocations: 408.7 kB / 410 MB, free: 14.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/0.2812, allocations: 312.4 kB / 410.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.2817, allocations: 437.7 kB / 410.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.2817, allocations: 33.7 kB / 410.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.2819, allocations: 204.4 kB / 410.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.115e-05/0.282, allocations: 87.27 kB / 411 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.2821, allocations: 61.69 kB / 411.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.2822, allocations: 346.8 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.2824, allocations: 55.98 kB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.2826, allocations: 187.9 kB / 411.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.2829, allocations: 179.2 kB / 411.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2829, allocations: 0 / 411.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004524/0.2834, allocations: 266.2 kB / 412.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2834, allocations: 7.984 kB / 412.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2834, allocations: 0 / 412.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001307/0.2836, allocations: 32.84 kB / 412.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.2838, allocations: 60.02 kB / 412.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/0.2853, allocations: 1.578 MB / 413.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.2856, allocations: 19.89 kB / 413.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.2856, allocations: 12 kB / 413.8 MB, free: 10.62 MB / 334.1 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 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001844/0.2858, allocations: 164.9 kB / 414 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-05/0.2858, allocations: 51.75 kB / 414 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.486e-05/0.2859, allocations: 47.52 kB / 414.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2859, allocations: 4 kB / 414.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.2859, allocations: 0 / 414.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005595/0.2865, allocations: 0.5855 MB / 414.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009198/0.2874, allocations: 0.7001 MB / 415.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2875, allocations: 0 / 415.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002057/0.2877, allocations: 47.91 kB / 415.4 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.2877, allocations: 0 / 415.4 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.2877, allocations: 8 kB / 415.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2877, allocations: 0 / 415.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.2877, allocations: 3.984 kB / 415.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005781/0.2883, allocations: 409.4 kB / 415.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.2885, allocations: 136.8 kB / 415.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.308e-05/0.2885, allocations: 11.98 kB / 416 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.2887, allocations: 11.94 kB / 416 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.2888, allocations: 15.98 kB / 416 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.2888, allocations: 7.984 kB / 416 MB, free: 8.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003287/0.2891, allocations: 311.2 kB / 416.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2891, allocations: 0 / 416.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003714/0.2895, allocations: 103.9 kB / 416.4 MB, free: 7.828 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002284/0.2918, allocations: 1.265 MB / 417.7 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005844/0.2924, allocations: 314.6 kB / 418 MB, free: 6.379 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2924, allocations: 0 / 418 MB, free: 6.379 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.2926, allocations: 82.34 kB / 418 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.2931, allocations: 105.2 kB / 418.2 MB, free: 6.203 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/0.2975, allocations: 3.364 MB / 421.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.298, allocations: 0.7999 MB / 422.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001843/0.2982, allocations: 46.94 kB / 422.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.2983, allocations: 127.4 kB / 422.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2984, allocations: 0 / 422.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/0.339, allocations: 10.16 MB / 432.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.17, allocations: 13.12 kB / 432.7 MB, free: 7.828 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches