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.001513/0.001513, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001501/0.001501, allocations: 190.8 kB / 24.49 MB, free: 3.98 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.339/1.339, allocations: 225.7 MB / 253.3 MB, free: 12.88 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 43.94 kB / 371.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2283, allocations: 52.18 MB / 423.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006278/0.2346, allocations: 4.507 MB / 427.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002562/0.2371, allocations: 1.242 MB / 429.1 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003225/0.2375, allocations: 15.94 kB / 429.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004251/0.2379, allocations: 162.6 kB / 429.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006378/0.2385, allocations: 333.2 kB / 429.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000426/0.2389, allocations: 231.6 kB / 429.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.2402, allocations: 1.179 MB / 431 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.2405, allocations: 226.5 kB / 431.2 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000484/0.241, allocations: 466.4 kB / 431.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006099/0.2416, allocations: 0.5174 MB / 432.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.2418, allocations: 100 kB / 432.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.2419, allocations: 108 kB / 432.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002013/0.2421, allocations: 223.2 kB / 432.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004469/0.2426, allocations: 446.2 kB / 433.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.2438, allocations: 1.21 MB / 434.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2438, allocations: 4 kB / 434.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2438, allocations: 0 / 434.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.2438, allocations: 0 / 434.3 MB, free: 3.488 MB / 334.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.002368/0.2461, allocations: 1.296 MB / 435.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2462, allocations: 12.03 kB / 435.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.711e-05/0.2462, allocations: 17.44 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.2464, allocations: 127.9 kB / 435.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/0.2466, allocations: 116.3 kB / 435.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009768/0.2476, allocations: 0.5429 MB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/0.2479, allocations: 312.9 kB / 436.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.248, allocations: 60 kB / 436.7 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.2499, allocations: 1.647 MB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.2499, allocations: 0 / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.25, allocations: 32 kB / 438.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.25, allocations: 12 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.2514, allocations: 0.6258 MB / 439.1 MB, free: 14.27 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.003412/0.2548, allocations: 1.733 MB / 440.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.2563, allocations: 0.7413 MB / 441.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008025/0.2572, allocations: 400 kB / 441.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.185e-05/0.2572, allocations: 9 kB / 441.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/0.2572, allocations: 51.55 kB / 442 MB, free: 11.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=87): time 2.314e-06/0.2573, allocations: 0 / 442 MB, free: 11.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.01902/0.2763, allocations: 6.259 MB / 448.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00806/0.2843, allocations: 4.717 MB / 453 MB, free: 15.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008806/0.2852, allocations: 0.6293 MB / 453.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002407/0.2854, allocations: 61.69 kB / 453.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/0.2857, allocations: 330 kB / 454 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004617/0.2862, allocations: 495.7 kB / 454.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004401/0.2866, allocations: 238.9 kB / 454.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002106/0.2868, allocations: 402.7 kB / 455.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/0.2883, allocations: 0.7415 MB / 455.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.2905, allocations: 1.827 MB / 457.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.2933, allocations: 1.47 MB / 459.1 MB, free: 9.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2933, allocations: 0 / 459.1 MB, free: 9.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00621/0.2995, allocations: 2.453 MB / 461.6 MB, free: 6.859 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.462e-05/0.2996, allocations: 85.11 kB / 461.6 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.2996, allocations: 0 / 461.6 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/0.3022, allocations: 0.7598 MB / 462.4 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.3033, allocations: 231.7 kB / 462.6 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01718/0.3204, allocations: 13.33 MB / 476 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.3225, allocations: 199.9 kB / 476.2 MB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001915/0.3227, allocations: 51.95 kB / 476.2 MB, free: 7.25 MB / 382.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 (115): * Single equations (assignments): 102 * Array equations: 2 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,3,88.9%), (1,3,100.0%), (1,7,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,3), (3,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005665/0.3232, allocations: 257.7 kB / 476.5 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.3235, allocations: 115.3 kB / 476.6 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.3238, allocations: 122.3 kB / 476.7 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006105/0.3299, allocations: 2.193 MB / 478.9 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.3299, allocations: 0 / 478.9 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005892/0.3358, allocations: 2.543 MB / 481.4 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01/0.3458, allocations: 4.067 MB / 485.5 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.351e-06/0.3458, allocations: 0 / 485.5 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.3468, allocations: 219.9 kB / 485.7 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003687/0.3505, allocations: 1.139 MB / 486.9 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.3506, allocations: 35.95 kB / 486.9 MB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.019/0.3696, allocations: 12.61 MB / 499.5 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006874/0.3765, allocations: 3.638 MB / 0.4913 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007657/0.3841, allocations: 3.333 MB / 0.4946 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007216/0.3849, allocations: 267.1 kB / 0.4949 GB, free: 7.625 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.385, allocations: 28 kB / 0.4949 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.3863, allocations: 131.8 kB / 0.495 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004402/0.3867, allocations: 145 kB / 0.4951 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.3868, allocations: 43.95 kB / 0.4952 GB, free: 7.281 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005982/0.3874, allocations: 451.1 kB / 0.4956 GB, free: 6.844 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3874, allocations: 0 / 0.4956 GB, free: 6.844 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001723/0.3891, allocations: 0.5859 MB / 0.4962 GB, free: 6.258 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],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 (97): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,3,100.0%), (3,3,88.9%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,15), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008206/0.3973, allocations: 3.912 MB / 0.5 GB, free: 2.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004899/0.4022, allocations: 2.831 MB / 0.5028 GB, free: 15.31 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.4022, allocations: 0 / 0.5028 GB, free: 15.31 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003923/0.4062, allocations: 1.843 MB / 0.5046 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.4076, allocations: 255.1 kB / 0.5048 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02431/0.4319, allocations: 12.32 MB / 0.5168 GB, free: 0.543 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.4325, allocations: 470.3 kB / 0.5173 GB, free: 52 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007707/0.4333, allocations: 152.5 kB / 0.5174 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007011/0.434, allocations: 415.2 kB / 0.5178 GB, free: 15.49 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/0.434, allocations: 0 / 0.5178 GB, free: 15.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2655/0.6995, allocations: 43.45 MB / 0.5603 GB, free: 126.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/15.54, allocations: 8 kB / 0.5603 GB, free: 126.5 MB / 462.1 MB " [Timeout remaining time 644] (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] [Calling os._exit(0), Time elapsed: 17.813882797025144] Failed to read output from testmodel.py, exit status != 0: ['time', 'heatCapacitor1.T', 'heatCapacitor2.T', 'pipe1.T', 'pipe2.T', 'pipe3.T'] 15.727984920027666 15.736522025 15.490721098 Calling exit ...