Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.001611/0.001611, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.001661/0.001662, allocations: 184.2 kB / 18.66 MB, free: 4.418 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.352/1.352, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.00114/0.00114, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.093/0.09415, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005768/0.09997, allocations: 5.024 MB / 379.7 MB, free: 20 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1867/0.2867, allocations: 1.337 MB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005376/0.2873, allocations: 9.906 kB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004511/0.2878, allocations: 161.4 kB / 381.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007115/0.2885, allocations: 320.6 kB / 381.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000562/0.2891, allocations: 237.5 kB / 381.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001292/0.2904, allocations: 1.184 MB / 382.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004847/0.2909, allocations: 315.2 kB / 383.2 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006134/0.2915, allocations: 450.8 kB / 383.6 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006231/0.2921, allocations: 0.5092 MB / 384.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.2923, allocations: 102.6 kB / 384.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.2925, allocations: 110.7 kB / 384.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.2927, allocations: 219.1 kB / 384.6 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004593/0.2931, allocations: 0.5196 MB / 385.1 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00137/0.2945, allocations: 1.206 MB / 386.3 MB, free: 7.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2945, allocations: 0 / 386.3 MB, free: 7.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.2945, allocations: 0 / 386.3 MB, free: 7.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.2946, allocations: 0 / 386.3 MB, free: 7.387 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002411/0.297, allocations: 1.344 MB / 387.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.297, allocations: 9.875 kB / 387.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.2972, allocations: 124 kB / 387.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.2974, allocations: 106.7 kB / 387.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.2985, allocations: 0.5874 MB / 388.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.2987, allocations: 146.9 kB / 388.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.2988, allocations: 62.41 kB / 388.7 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.3003, allocations: 0.8659 MB / 389.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.3003, allocations: 1.25 kB / 389.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.657e-05/0.3004, allocations: 27.69 kB / 389.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.3004, allocations: 18.11 kB / 389.6 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.3019, allocations: 0.6078 MB / 390.2 MB, free: 5.027 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.003986/0.3059, allocations: 2.085 MB / 392.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.3073, allocations: 0.8447 MB / 393.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000844/0.3082, allocations: 407.5 kB / 393.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.336e-05/0.3083, allocations: 13.69 kB / 393.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.3083, allocations: 48.14 kB / 393.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 3.897e-06/0.3083, allocations: 3.984 kB / 393.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.005433/0.3137, allocations: 1.793 MB / 395.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/0.3139, allocations: 0.823 MB / 396.2 MB, free: 1.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008686/0.3148, allocations: 0.6382 MB / 396.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.3149, allocations: 45.27 kB / 396.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002667/0.3152, allocations: 336.5 kB / 397.2 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.3155, allocations: 262.7 kB / 397.5 MB, free: 480 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002617/0.3157, allocations: 140.5 kB / 397.6 MB, free: 412 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.3159, allocations: 393.2 kB / 398 MB, free: 52 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007594/0.3166, allocations: 276.7 kB / 398.3 MB, free: 0 / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.3178, allocations: 0.5703 MB / 398.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/0.3192, allocations: 0.6771 MB / 399.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3192, allocations: 1.125 kB / 399.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002912/0.3222, allocations: 1.096 MB / 400.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.989e-05/0.3222, allocations: 83.98 kB / 400.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3223, allocations: 7.625 kB / 400.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007082/0.323, allocations: 230 kB / 400.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006176/0.3236, allocations: 140.3 kB / 401.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008676/0.3323, allocations: 6.931 MB / 408 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.3335, allocations: 102.3 kB / 408.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.3336, allocations: 29.58 kB / 408.1 MB, free: 8.113 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005426/0.3342, allocations: 225.2 kB / 408.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.3345, allocations: 87.72 kB / 408.4 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002147/0.3347, allocations: 93.92 kB / 408.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.3347, allocations: 8.125 kB / 408.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.3347, allocations: 4 kB / 408.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002591/0.3373, allocations: 1.238 MB / 409.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004312/0.3417, allocations: 1.923 MB / 411.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3417, allocations: 3.938 kB / 411.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006878/0.3424, allocations: 140.9 kB / 411.8 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005552/0.3429, allocations: 197.2 kB / 412 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.526e-05/0.343, allocations: 20.23 kB / 412 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006654/0.3497, allocations: 5.341 MB / 417.4 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3497, allocations: 0 / 417.4 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003519/0.3532, allocations: 1.392 MB / 418.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006338/0.3539, allocations: 245.1 kB / 419 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002699/0.3542, allocations: 17.91 kB / 419 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008185/0.355, allocations: 51.17 kB / 419.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3552, allocations: 61.22 kB / 419.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.432e-05/0.3553, allocations: 15.78 kB / 419.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007919/0.3561, allocations: 461.9 kB / 419.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3561, allocations: 4 kB / 419.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001287/0.3574, allocations: 286.7 kB / 419.9 MB, free: 14.97 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00402/0.3614, allocations: 1.965 MB / 421.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.364, allocations: 1.367 MB / 423.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.364, allocations: 0 / 423.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.3656, allocations: 0.7614 MB / 424 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.367, allocations: 234.2 kB / 424.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/0.3813, allocations: 7.517 MB / 431.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.382, allocations: 0.9479 MB / 432.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005177/0.3825, allocations: 106.4 kB / 432.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004645/0.383, allocations: 303.3 kB / 433.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.383, allocations: 3.938 kB / 433.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0884/0.4714, allocations: 26.58 MB / 459.7 MB, free: 7.555 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.67, allocations: 7.844 kB / 459.7 MB, free: 7.547 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches