Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 121.4 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001874/0.001874, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 51.92 kB / 365.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09473, allocations: 52.13 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006021/0.1008, allocations: 5.059 MB / 422.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.1031, allocations: 1.305 MB / 424.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002849/0.1033, allocations: 11.94 kB / 424.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004168/0.1038, allocations: 166.5 kB / 424.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000615/0.1044, allocations: 333.2 kB / 424.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004367/0.1048, allocations: 231.6 kB / 424.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.1061, allocations: 1.172 MB / 426 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003795/0.1065, allocations: 222.1 kB / 426.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005912/0.1071, allocations: 454.4 kB / 426.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005871/0.1076, allocations: 0.5019 MB / 427.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.1078, allocations: 111.9 kB / 427.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.1079, allocations: 108 kB / 427.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.1081, allocations: 219.3 kB / 427.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004876/0.1086, allocations: 0.5211 MB / 428.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.1099, allocations: 1.21 MB / 429.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1099, allocations: 0 / 429.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.1099, allocations: 0 / 429.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.11, allocations: 0 / 429.4 MB, free: 0.9375 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.002518/0.1125, allocations: 1.367 MB / 430.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1125, allocations: 12.03 kB / 430.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001698/0.1127, allocations: 116 kB / 430.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1129, allocations: 112.3 kB / 431 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.1139, allocations: 0.5993 MB / 431.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002116/0.1141, allocations: 143 kB / 431.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.1142, allocations: 63.94 kB / 431.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.1157, allocations: 0.8665 MB / 432.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.1157, allocations: 0 / 432.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.249e-05/0.1158, allocations: 28 kB / 432.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.1158, allocations: 16 kB / 432.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.1172, allocations: 0.6101 MB / 433.3 MB, free: 12.77 MB / 366.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.003401/0.1206, allocations: 2.093 MB / 435.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.122, allocations: 0.8049 MB / 436.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007629/0.1227, allocations: 358.6 kB / 436.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-05/0.1228, allocations: 12.66 kB / 436.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.1228, allocations: 55.2 kB / 436.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.515e-06/0.1228, allocations: 0 / 436.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004953/0.1278, allocations: 1.793 MB / 438.4 MB, free: 7.395 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004415/0.1282, allocations: 0.8234 MB / 439.2 MB, free: 6.375 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007884/0.129, allocations: 0.6293 MB / 439.8 MB, free: 5.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.993e-05/0.1291, allocations: 45.7 kB / 439.9 MB, free: 5.688 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.1294, allocations: 353.2 kB / 440.2 MB, free: 5.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.1296, allocations: 269.7 kB / 440.5 MB, free: 5.074 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/0.1299, allocations: 142.7 kB / 440.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.1301, allocations: 386.7 kB / 441 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.1307, allocations: 269.8 kB / 441.3 MB, free: 4.281 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009106/0.1316, allocations: 0.5546 MB / 441.8 MB, free: 3.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.133, allocations: 0.6856 MB / 442.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.133, allocations: 0 / 442.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002601/0.1356, allocations: 1.087 MB / 443.6 MB, free: 1.789 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.36e-05/0.1356, allocations: 93.09 kB / 443.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.1356, allocations: 0 / 443.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006724/0.1363, allocations: 231.3 kB / 443.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.1369, allocations: 139.8 kB / 444.1 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1793/0.3163, allocations: 6.928 MB / 451 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008462/0.3171, allocations: 102.8 kB / 451.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.541e-05/0.3172, allocations: 25.88 kB / 451.1 MB, free: 24.73 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.0002768/0.3174, allocations: 218.7 kB / 451.3 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.3176, allocations: 94.09 kB / 451.4 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001301/0.3177, allocations: 93.44 kB / 451.5 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3177, allocations: 6.406 kB / 451.5 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.3177, allocations: 0 / 451.5 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001983/0.3197, allocations: 1.236 MB / 452.7 MB, free: 24.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003227/0.3229, allocations: 1.92 MB / 454.7 MB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3229, allocations: 0 / 454.7 MB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006348/0.3235, allocations: 141.5 kB / 454.8 MB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004716/0.324, allocations: 197.7 kB / 455 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.3241, allocations: 22.41 kB / 455 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005024/0.3291, allocations: 5.346 MB / 460.4 MB, free: 19.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3291, allocations: 0 / 460.4 MB, free: 19.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003041/0.3321, allocations: 1.393 MB / 461.8 MB, free: 18.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/0.3325, allocations: 244.7 kB / 462 MB, free: 18.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.3326, allocations: 20.66 kB / 462 MB, free: 18.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006006/0.3332, allocations: 53.67 kB / 462.1 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.3333, allocations: 61.39 kB / 462.1 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-05/0.3334, allocations: 18.84 kB / 462.1 MB, free: 18.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000478/0.3339, allocations: 454.6 kB / 462.6 MB, free: 18.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3339, allocations: 2.297 kB / 462.6 MB, free: 18.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008526/0.3347, allocations: 294.3 kB / 462.9 MB, free: 18.38 MB / 366.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.002998/0.3377, allocations: 1.969 MB / 464.9 MB, free: 17.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001884/0.3396, allocations: 1.32 MB / 466.2 MB, free: 16.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3396, allocations: 2.781 kB / 466.2 MB, free: 16.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.3408, allocations: 0.7427 MB / 466.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009203/0.3417, allocations: 233.2 kB / 467.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.3531, allocations: 7.546 MB / 474.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.3536, allocations: 0.9464 MB / 475.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005744/0.3542, allocations: 103.2 kB / 475.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.3545, allocations: 299.8 kB / 476 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3545, allocations: 4 kB / 476 MB, free: 11.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.081/0.4355, allocations: 26.09 MB / 0.4904 GB, free: 7.191 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.19, allocations: 5.266 kB / 0.4904 GB, free: 7.188 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.518430860713124]