Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 112.4 kB / 21.19 MB, free: 0.7148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 212.7 kB / 24.49 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002898/0.002898, allocations: 47.92 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2744, allocations: 49.16 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.004607/0.279, allocations: 3.517 MB / 399.9 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.2809, allocations: 0.9981 MB / 400.9 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004411/0.2814, allocations: 9.438 kB / 400.9 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003997/0.2818, allocations: 107.8 kB / 401 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005717/0.2823, allocations: 195.2 kB / 401.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.2827, allocations: 118 kB / 401.3 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008566/0.2836, allocations: 0.6381 MB / 401.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.2838, allocations: 131.7 kB / 402 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003807/0.2842, allocations: 247.4 kB / 402.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004887/0.2847, allocations: 277.3 kB / 402.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.2848, allocations: 52.03 kB / 402.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.285, allocations: 58.09 kB / 402.7 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.817e-05/0.2851, allocations: 119.8 kB / 402.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.2854, allocations: 292.9 kB / 403.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007366/0.2862, allocations: 0.6497 MB / 403.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2862, allocations: 1.156 kB / 403.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2862, allocations: 0 / 403.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.023e-05/0.2862, allocations: 0 / 403.7 MB, free: 4.328 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001349/0.2876, allocations: 0.7871 MB / 404.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2876, allocations: 12.83 kB / 404.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.25e-05/0.2877, allocations: 77.53 kB / 404.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.2878, allocations: 65.42 kB / 404.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.2883, allocations: 335.2 kB / 405 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.2884, allocations: 114.9 kB / 405.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.2885, allocations: 34.69 kB / 405.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006289/0.2891, allocations: 477.9 kB / 405.6 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.2891, allocations: 0 / 405.6 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.2892, allocations: 20.97 kB / 405.6 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2892, allocations: 8.312 kB / 405.6 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005364/0.2897, allocations: 282.2 kB / 405.9 MB, free: 2.871 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.001905/0.2916, allocations: 1.269 MB / 407.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.2927, allocations: 337.2 kB / 407.5 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002342/0.2929, allocations: 125.6 kB / 407.6 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.2929, allocations: 4.875 kB / 407.6 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.293, allocations: 47.19 kB / 407.7 MB, free: 1.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.763e-06/0.293, allocations: 0 / 407.7 MB, free: 1.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001019/0.294, allocations: 460.5 kB / 408.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.856e-05/0.2941, allocations: 447.4 kB / 408.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004688/0.2945, allocations: 454 kB / 409 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.2946, allocations: 32.73 kB / 409 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.2947, allocations: 235.8 kB / 409.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.856e-05/0.2948, allocations: 117.2 kB / 409.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.2949, allocations: 76.62 kB / 409.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.802e-05/0.2949, allocations: 356.4 kB / 409.8 MB, free: 176 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.2952, allocations: 104 kB / 409.9 MB, free: 140 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.2955, allocations: 251.9 kB / 410.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005128/0.296, allocations: 284 kB / 410.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.296, allocations: 0 / 410.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007524/0.2968, allocations: 421.4 kB / 410.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.2968, allocations: 32.42 kB / 410.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2968, allocations: 0.7969 kB / 410.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.297, allocations: 62.92 kB / 410.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.2973, allocations: 68.47 kB / 411 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002738/0.3, allocations: 2.757 MB / 413.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000455/0.3005, allocations: 44.28 kB / 413.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.3005, allocations: 13.11 kB / 413.8 MB, free: 12.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002317/0.3008, allocations: 164.1 kB / 414 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.994e-05/0.3008, allocations: 53.88 kB / 414 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.3009, allocations: 62.36 kB / 414.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.301, allocations: 3.406 kB / 414.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.301, allocations: 1.844 kB / 414.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007393/0.3017, allocations: 0.6532 MB / 414.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.3032, allocations: 0.8744 MB / 415.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.3032, allocations: 1.75 kB / 415.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.3035, allocations: 67.78 kB / 415.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3035, allocations: 1.156 kB / 415.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.3036, allocations: 9.203 kB / 415.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3036, allocations: 1.469 kB / 415.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3036, allocations: 1.438 kB / 415.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009297/0.3045, allocations: 0.5202 MB / 416.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/0.3047, allocations: 93.05 kB / 416.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.779e-05/0.3048, allocations: 7.438 kB / 416.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.3051, allocations: 19.88 kB / 416.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.3051, allocations: 18.94 kB / 416.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.3051, allocations: 10.67 kB / 416.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004113/0.3056, allocations: 322.5 kB / 416.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3056, allocations: 0 / 416.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005237/0.3061, allocations: 130.9 kB / 416.8 MB, free: 10.67 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.001307/0.3074, allocations: 1.075 MB / 417.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3084, allocations: 0.5485 MB / 418.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3084, allocations: 5.062 kB / 418.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002315/0.3086, allocations: 124.7 kB / 418.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006326/0.3093, allocations: 132.6 kB / 418.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006285/0.3156, allocations: 4.261 MB / 423 MB, free: 6.445 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.316, allocations: 0.8202 MB / 423.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002745/0.3163, allocations: 60.25 kB / 423.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002314/0.3165, allocations: 159.1 kB / 424 MB, free: 5.539 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3165, allocations: 4 kB / 424 MB, free: 5.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.3631, allocations: 13.04 MB / 437 MB, free: 9.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.53, allocations: 19.89 kB / 437.1 MB, free: 9.449 MB / 350.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable heatCapacitor.T in file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv. Warning: Get data of variable heatCapacitor.T from file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv failed! Error: Could not read variable pipe.T in file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv. Warning: Get data of variable pipe.T from file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.015272440003173]