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.001575/0.001575, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001434/0.001434, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.421/1.421, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001622/0.001622, allocations: 55.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09313, allocations: 53.32 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.1907/0.2838, allocations: 5.065 MB / 431.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002427/0.2862, allocations: 1.337 MB / 432.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002961/0.2865, allocations: 13.06 kB / 432.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000363/0.2869, allocations: 163.3 kB / 432.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005279/0.2874, allocations: 332.1 kB / 433.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.2878, allocations: 231.3 kB / 433.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009145/0.2887, allocations: 1.178 MB / 434.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.289, allocations: 221.6 kB / 434.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004229/0.2894, allocations: 462.3 kB / 435.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004988/0.2899, allocations: 0.5103 MB / 435.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.2901, allocations: 102.7 kB / 435.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.2902, allocations: 106.3 kB / 436 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.2904, allocations: 227.9 kB / 436.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004214/0.2908, allocations: 0.52 MB / 436.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.2921, allocations: 1.205 MB / 437.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2921, allocations: 0 / 437.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2921, allocations: 0 / 437.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.559e-05/0.2921, allocations: 5.312 kB / 437.9 MB, free: 5.957 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.002448/0.2946, allocations: 1.365 MB / 439.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.2946, allocations: 9.875 kB / 439.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.2948, allocations: 119.2 kB / 439.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.295, allocations: 117.1 kB / 439.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000962/0.296, allocations: 0.5942 MB / 440.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.2962, allocations: 147.1 kB / 440.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.789e-05/0.2963, allocations: 65.69 kB / 440.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.2976, allocations: 0.8586 MB / 441.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.2976, allocations: 4 kB / 441.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.73e-05/0.2977, allocations: 28.12 kB / 441.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.2977, allocations: 15.05 kB / 441.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.2992, allocations: 0.6059 MB / 441.9 MB, free: 3.57 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.003407/0.3026, allocations: 2.087 MB / 444 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.304, allocations: 0.8032 MB / 444.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007653/0.3047, allocations: 356.4 kB / 445.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.254e-05/0.3048, allocations: 18.94 kB / 445.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.3048, allocations: 47.02 kB / 445.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.295e-06/0.3048, allocations: 0 / 445.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004963/0.3098, allocations: 1.799 MB / 447 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002093/0.31, allocations: 0.8239 MB / 447.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009183/0.3109, allocations: 0.6379 MB / 448.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.895e-05/0.311, allocations: 44.95 kB / 448.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.3113, allocations: 346.8 kB / 448.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002634/0.3116, allocations: 271.8 kB / 449.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.3118, allocations: 140.5 kB / 449.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.3121, allocations: 389.3 kB / 449.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007124/0.3128, allocations: 272.5 kB / 449.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.3138, allocations: 0.5498 MB / 450.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.3153, allocations: 0.6847 MB / 451.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3153, allocations: 1.219 kB / 451.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002838/0.3181, allocations: 1.093 MB / 452.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.032e-05/0.3182, allocations: 84.62 kB / 452.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3182, allocations: 5.281 kB / 452.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007176/0.3189, allocations: 230.6 kB / 452.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006515/0.3196, allocations: 145.5 kB / 452.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008782/0.3283, allocations: 6.941 MB / 459.6 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.3295, allocations: 99.03 kB / 459.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.3296, allocations: 22.86 kB / 459.7 MB, free: 6.742 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.0004315/0.33, allocations: 221 kB / 459.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.3302, allocations: 97.2 kB / 460 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.3304, allocations: 94.45 kB / 460.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3304, allocations: 6.531 kB / 460.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.3304, allocations: 0 / 460.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002558/0.3329, allocations: 1.231 MB / 461.3 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003989/0.3369, allocations: 1.923 MB / 463.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3369, allocations: 0 / 463.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006588/0.3376, allocations: 140.7 kB / 463.4 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005297/0.3381, allocations: 199.1 kB / 463.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.3382, allocations: 19.64 kB / 463.6 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006941/0.3451, allocations: 5.351 MB / 469 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3451, allocations: 3.938 kB / 469 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003476/0.3486, allocations: 1.386 MB / 470.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.3491, allocations: 245.1 kB / 470.6 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.3492, allocations: 18.91 kB / 470.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006483/0.3498, allocations: 53.55 kB / 470.7 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.35, allocations: 62.38 kB / 470.7 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/0.35, allocations: 20.59 kB / 470.7 MB, free: 14.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005891/0.3506, allocations: 460.3 kB / 471.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3506, allocations: 3.938 kB / 471.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008881/0.3515, allocations: 284.4 kB / 471.5 MB, free: 13.83 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.003646/0.3552, allocations: 1.962 MB / 473.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.3575, allocations: 1.315 MB / 474.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3575, allocations: 1.156 kB / 474.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.3589, allocations: 0.7551 MB / 475.5 MB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.36, allocations: 231.2 kB / 475.7 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.3732, allocations: 7.538 MB / 483.3 MB, free: 4.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006242/0.3739, allocations: 0.9518 MB / 484.2 MB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004643/0.3743, allocations: 98.42 kB / 484.3 MB, free: 3.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004404/0.3748, allocations: 303.3 kB / 484.6 MB, free: 3.457 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3748, allocations: 0 / 484.6 MB, free: 3.457 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07126/0.446, allocations: 26.08 MB / 0.4987 GB, free: 9.777 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.28, allocations: 14.62 kB / 0.4987 GB, free: 9.766 MB / 414.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.636790493037552]