Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.001208/0.001208, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001422/0.001422, allocations: 209.5 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.TwoMass,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2479, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006085/0.254, allocations: 4.516 MB / 435.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.2566, allocations: 1.293 MB / 436.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003775/0.2569, allocations: 15.88 kB / 436.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004191/0.2574, allocations: 158.6 kB / 437.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006959/0.2581, allocations: 333.2 kB / 437.4 MB, free: 316 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.2585, allocations: 235.7 kB / 437.6 MB, free: 80 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001409/0.2599, allocations: 1.168 MB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.2603, allocations: 222.5 kB / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005707/0.2609, allocations: 466.4 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006415/0.2615, allocations: 0.5135 MB / 440 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.2617, allocations: 104 kB / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.2618, allocations: 108 kB / 440.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.262, allocations: 227.2 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004523/0.2625, allocations: 442.2 kB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.2637, allocations: 1.214 MB / 442 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2637, allocations: 0 / 442 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2637, allocations: 0 / 442 MB, free: 11.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.2637, allocations: 4 kB / 442 MB, free: 11.61 MB / 350.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.002613/0.2663, allocations: 1.292 MB / 443.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.2664, allocations: 12.03 kB / 443.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001942/0.2666, allocations: 115.9 kB / 443.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001988/0.2668, allocations: 112.3 kB / 443.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.2678, allocations: 0.5351 MB / 444.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/0.2681, allocations: 301.2 kB / 444.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.2682, allocations: 67.89 kB / 444.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.2701, allocations: 1.62 MB / 446.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.2701, allocations: 8 kB / 446.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.069e-05/0.2702, allocations: 24 kB / 446.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.2702, allocations: 16 kB / 446.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.2716, allocations: 0.6062 MB / 446.7 MB, free: 6.488 MB / 350.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.003577/0.2752, allocations: 1.639 MB / 448.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.2764, allocations: 0.5811 MB / 449 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007616/0.2772, allocations: 354.6 kB / 449.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.672e-05/0.2773, allocations: 16.66 kB / 449.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.2773, allocations: 47.22 kB / 449.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.915e-06/0.2773, allocations: 0 / 449.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005097/0.2824, allocations: 1.488 MB / 450.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004135/0.2828, allocations: 0.8233 MB / 451.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008357/0.2837, allocations: 0.637 MB / 452.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.2838, allocations: 45.7 kB / 452.4 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.2841, allocations: 349.3 kB / 452.7 MB, free: 228 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002797/0.2843, allocations: 269.8 kB / 453 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.2846, allocations: 142.7 kB / 453.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.2848, allocations: 386.8 kB / 453.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007099/0.2855, allocations: 359 kB / 453.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.2868, allocations: 1.387 MB / 455.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.2882, allocations: 0.6817 MB / 455.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2882, allocations: 0 / 455.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002804/0.291, allocations: 1.174 MB / 457.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.848e-05/0.2911, allocations: 89.09 kB / 457.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.2911, allocations: 4 kB / 457.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007564/0.2918, allocations: 227.3 kB / 457.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006893/0.2925, allocations: 143.8 kB / 457.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008068/0.3006, allocations: 6.471 MB / 464 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009349/0.3015, allocations: 103.7 kB / 464.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/0.3016, allocations: 20 kB / 464.1 MB, free: 3.895 MB / 366.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.0003846/0.302, allocations: 224.1 kB / 464.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.3022, allocations: 95.61 kB / 464.4 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.3024, allocations: 87.34 kB / 464.5 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3024, allocations: 11.94 kB / 464.5 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3024, allocations: 4 kB / 464.5 MB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002548/0.305, allocations: 1.233 MB / 465.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004018/0.309, allocations: 1.74 MB / 467.5 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.309, allocations: 3.938 kB / 467.5 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007282/0.3097, allocations: 135.8 kB / 467.6 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005924/0.3103, allocations: 206.5 kB / 467.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-05/0.3104, allocations: 15.98 kB / 467.9 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006742/0.3171, allocations: 5.008 MB / 472.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3171, allocations: 0 / 472.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003472/0.3206, allocations: 1.392 MB / 474.3 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005028/0.3211, allocations: 167.2 kB / 474.4 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.3212, allocations: 20 kB / 474.4 MB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006603/0.3219, allocations: 47.95 kB / 474.5 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.3221, allocations: 64.53 kB / 474.6 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/0.3221, allocations: 23.92 kB / 474.6 MB, free: 8.875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005873/0.3227, allocations: 459.1 kB / 475 MB, free: 8.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3227, allocations: 4 kB / 475 MB, free: 8.426 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008925/0.3236, allocations: 279.8 kB / 475.3 MB, free: 8.152 MB / 382.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.003635/0.3273, allocations: 1.963 MB / 477.3 MB, free: 6.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002396/0.3297, allocations: 1.4 MB / 478.7 MB, free: 4.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.3297, allocations: 4 kB / 478.7 MB, free: 4.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.3311, allocations: 0.7379 MB / 479.4 MB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.3323, allocations: 250 kB / 479.6 MB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/0.3459, allocations: 7.839 MB / 487.5 MB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.3463, allocations: 354.2 kB / 487.8 MB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004553/0.3467, allocations: 102.4 kB / 487.9 MB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004097/0.3471, allocations: 303.3 kB / 488.2 MB, free: 10.76 MB / 398.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3471, allocations: 0 / 488.2 MB, free: 10.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07542/0.4225, allocations: 28.45 MB / 0.5046 GB, free: 14.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.31, allocations: 10.44 kB / 0.5046 GB, free: 14.77 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.641190513008041]