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.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 3.2.3+maint.om/package.mo", uses=false) 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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001172/0.001172, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08868, allocations: 46.63 MB / 326.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.004701/0.09341, allocations: 3.519 MB / 330.2 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.09544, allocations: 0.9942 MB / 331.2 MB, free: 260 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004533/0.09592, allocations: 7.938 kB / 331.2 MB, free: 252 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004525/0.09642, allocations: 83.44 kB / 331.3 MB, free: 168 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005743/0.097, allocations: 162.7 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.09734, allocations: 103.9 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007545/0.09811, allocations: 0.6106 MB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002579/0.09838, allocations: 167 kB / 332.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/0.09868, allocations: 235.1 kB / 332.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002456/0.09894, allocations: 258.8 kB / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.837e-05/0.09901, allocations: 40 kB / 332.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.656e-05/0.0991, allocations: 36 kB / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.849e-05/0.09919, allocations: 107.6 kB / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002392/0.09944, allocations: 278.6 kB / 333.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004899/0.09994, allocations: 0.619 MB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.09995, allocations: 0 / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.09996, allocations: 0 / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.09997, allocations: 0 / 333.9 MB, free: 13.57 MB / 286.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.00125/0.1012, allocations: 0.8467 MB / 334.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1013, allocations: 8.031 kB / 334.7 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.1014, allocations: 75.72 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.794e-05/0.1015, allocations: 64.28 kB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.1019, allocations: 395 kB / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.102, allocations: 59.27 kB / 335.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-05/0.1021, allocations: 32.36 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006408/0.1028, allocations: 478 kB / 335.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1028, allocations: 0 / 335.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.1028, allocations: 19.94 kB / 335.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1028, allocations: 8 kB / 335.8 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005063/0.1033, allocations: 283.8 kB / 336.1 MB, free: 11.16 MB / 286.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.001834/0.1052, allocations: 1.32 MB / 337.4 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.1063, allocations: 428.5 kB / 337.9 MB, free: 9.301 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.1065, allocations: 144.7 kB / 338 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.1066, allocations: 4 kB / 338 MB, free: 9.152 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.1066, allocations: 38.56 kB / 338 MB, free: 9.105 MB / 286.1 MB Notification: Performance of pre-optimization done (n=32): time 1.412e-06/0.1066, allocations: 0 / 338 MB, free: 9.105 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001086/0.1077, allocations: 0.6101 MB / 338.6 MB, free: 8.445 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001816/0.1079, allocations: 452.9 kB / 339.1 MB, free: 7.898 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004505/0.1084, allocations: 445.9 kB / 339.5 MB, free: 7.449 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.1084, allocations: 33.7 kB / 339.6 MB, free: 7.41 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.1086, allocations: 244.4 kB / 339.8 MB, free: 7.168 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.857e-05/0.1087, allocations: 106.4 kB / 339.9 MB, free: 7.062 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.1088, allocations: 78.02 kB / 340 MB, free: 6.98 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1089, allocations: 354.8 kB / 340.3 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.1092, allocations: 104.6 kB / 340.4 MB, free: 6.523 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.1095, allocations: 256 kB / 340.7 MB, free: 6.223 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/0.11, allocations: 276.3 kB / 340.9 MB, free: 5.941 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.11, allocations: 4 kB / 340.9 MB, free: 5.938 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006687/0.1106, allocations: 420.9 kB / 341.4 MB, free: 5.508 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.1107, allocations: 29.7 kB / 341.4 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1107, allocations: 3.984 kB / 341.4 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001438/0.1109, allocations: 53.64 kB / 341.4 MB, free: 5.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.1111, allocations: 67.89 kB / 341.5 MB, free: 5.344 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.1133, allocations: 2.748 MB / 344.3 MB, free: 2.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.1137, allocations: 47.61 kB / 344.3 MB, free: 2.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.1137, allocations: 12 kB / 344.3 MB, free: 2.273 MB / 286.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.0001954/0.1139, allocations: 169.7 kB / 344.5 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.705e-05/0.114, allocations: 51.44 kB / 344.5 MB, free: 2.047 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.1141, allocations: 52.69 kB / 344.6 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1141, allocations: 4 kB / 344.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1141, allocations: 0 / 344.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006497/0.1148, allocations: 0.6454 MB / 345.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.116, allocations: 0.9082 MB / 346.1 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.116, allocations: 0 / 346.1 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.1163, allocations: 68.12 kB / 346.2 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1163, allocations: 4 kB / 346.2 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.1164, allocations: 16.03 kB / 346.2 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.1164, allocations: 11.88 kB / 346.2 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1164, allocations: 0 / 346.2 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007903/0.1172, allocations: 0.5269 MB / 346.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.1173, allocations: 160.5 kB / 346.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.16e-05/0.1174, allocations: 8 kB / 346.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.1177, allocations: 19.92 kB / 347 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.1178, allocations: 15.98 kB / 347 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.1178, allocations: 16.05 kB / 347 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003568/0.1182, allocations: 319.1 kB / 347.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1182, allocations: 0 / 347.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003939/0.1186, allocations: 135.8 kB / 347.4 MB, free: 14.95 MB / 302.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.001058/0.1196, allocations: 1.064 MB / 348.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008235/0.1205, allocations: 0.5557 MB / 349 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1205, allocations: 4 kB / 349.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.1207, allocations: 127.8 kB / 349.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007157/0.1214, allocations: 129.9 kB / 349.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005526/0.127, allocations: 4.533 MB / 353.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.1273, allocations: 0.8159 MB / 354.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002404/0.1275, allocations: 64.34 kB / 354.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.1278, allocations: 159.4 kB / 354.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1278, allocations: 0 / 354.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02446/0.1522, allocations: 11.96 MB / 366.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/0.1525, allocations: 241.3 kB / 367.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.111, allocations: 4 kB / 367.1 MB, free: 11.04 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches