Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009523/0.0009523, allocations: 102.4 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009907/0.0009908, allocations: 189.7 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.00025, allocations: 8 kB / 306.8 MB, free: 1.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1082, allocations: 51.5 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004525/0.1128, allocations: 4.412 MB / 362.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.1154, allocations: 1.204 MB / 363.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003671/0.1158, allocations: 11.94 kB / 363.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003308/0.1162, allocations: 119.1 kB / 364 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006848/0.1168, allocations: 281.7 kB / 364.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.1173, allocations: 167.7 kB / 364.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009701/0.1182, allocations: 1.039 MB / 365.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003767/0.1186, allocations: 278.6 kB / 365.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004423/0.1191, allocations: 394.6 kB / 366.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004505/0.1195, allocations: 462.1 kB / 366.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.1197, allocations: 64 kB / 366.7 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.1198, allocations: 72 kB / 366.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.1199, allocations: 175.3 kB / 366.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.1201, allocations: 205.3 kB / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006917/0.1208, allocations: 0.8725 MB / 368 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1208, allocations: 0 / 368 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1208, allocations: 0 / 368 MB, free: 4.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.1209, allocations: 0 / 368 MB, free: 4.242 MB / 302.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.002021/0.1229, allocations: 1.215 MB / 369.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1229, allocations: 8.031 kB / 369.2 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001788/0.1231, allocations: 119.6 kB / 369.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.1233, allocations: 106.9 kB / 369.5 MB, free: 2.719 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00088/0.1242, allocations: 0.563 MB / 370 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.1245, allocations: 174.4 kB / 370.2 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.1246, allocations: 60 kB / 370.2 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.126, allocations: 0.8939 MB / 371.1 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.126, allocations: 7.844 kB / 371.1 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.173e-05/0.1261, allocations: 32 kB / 371.2 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.1261, allocations: 12 kB / 371.2 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.1275, allocations: 0.661 MB / 371.8 MB, free: 168 kB / 302.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.2113/0.3388, allocations: 2.111 MB / 374 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.3403, allocations: 0.8898 MB / 374.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008911/0.3412, allocations: 426.4 kB / 375.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.127e-05/0.3413, allocations: 13.7 kB / 375.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.3414, allocations: 50.39 kB / 375.3 MB, free: 18.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.475e-06/0.3414, allocations: 4.625 kB / 375.3 MB, free: 18.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005047/0.3464, allocations: 1.987 MB / 377.3 MB, free: 17.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002141/0.3467, allocations: 0.8226 MB / 378.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008064/0.3475, allocations: 0.6244 MB / 378.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.588e-05/0.3475, allocations: 45.86 kB / 378.8 MB, free: 16.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.3478, allocations: 342.3 kB / 379.1 MB, free: 16.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.348, allocations: 255.5 kB / 379.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.348, allocations: 19.91 kB / 379.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3481, allocations: 384.7 kB / 379.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007127/0.3489, allocations: 301.3 kB / 380.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008685/0.3497, allocations: 0.5828 MB / 380.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007413/0.3505, allocations: 428.7 kB / 381.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.3505, allocations: 6.391 kB / 381.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00261/0.3531, allocations: 1.188 MB / 382.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.435e-05/0.3532, allocations: 92.31 kB / 382.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3532, allocations: 5.828 kB / 382.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006779/0.3539, allocations: 246 kB / 382.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006233/0.3545, allocations: 156.9 kB / 382.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006286/0.3608, allocations: 6.489 MB / 389.3 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009551/0.3618, allocations: 118.9 kB / 389.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.903e-05/0.3619, allocations: 23.06 kB / 389.4 MB, free: 8.355 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000402/0.3623, allocations: 226.4 kB / 389.6 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.3624, allocations: 85.19 kB / 389.7 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001818/0.3626, allocations: 91.91 kB / 389.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3626, allocations: 7.75 kB / 389.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.3626, allocations: 0 / 389.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002492/0.3651, allocations: 1.338 MB / 391.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004076/0.3692, allocations: 2.036 MB / 393.2 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.3693, allocations: 2.406 kB / 393.2 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007157/0.37, allocations: 155.8 kB / 393.3 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005275/0.3705, allocations: 212.2 kB / 393.5 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.501e-05/0.3706, allocations: 14.52 kB / 393.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005602/0.3762, allocations: 5.061 MB / 398.6 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3762, allocations: 0 / 398.6 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003627/0.3799, allocations: 1.526 MB / 400.1 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006077/0.3805, allocations: 240.9 kB / 400.4 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.3807, allocations: 20.25 kB / 400.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006415/0.3813, allocations: 70.02 kB / 400.5 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.3815, allocations: 69.5 kB / 400.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-05/0.3816, allocations: 20.77 kB / 400.5 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006535/0.3822, allocations: 448 kB / 401 MB, free: 300 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3822, allocations: 0 / 401 MB, free: 300 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001316/0.3836, allocations: 288.2 kB / 401.3 MB, free: 252 kB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003735/0.3873, allocations: 2.093 MB / 403.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.3899, allocations: 1.405 MB / 404.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.3899, allocations: 2.688 kB / 404.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.3914, allocations: 0.8161 MB / 405.6 MB, free: 13.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.3926, allocations: 232.7 kB / 405.8 MB, free: 13.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009725/0.4023, allocations: 5.383 MB / 411.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007333/0.4031, allocations: 0.944 MB / 412.1 MB, free: 6.707 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006528/0.4038, allocations: 98.44 kB / 412.2 MB, free: 6.605 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004533/0.4042, allocations: 303.3 kB / 412.5 MB, free: 6.309 MB / 318.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4043, allocations: 0 / 412.5 MB, free: 6.309 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04071/0.445, allocations: 23.2 MB / 435.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.4452, allocations: 208.7 kB / 435.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.715/3.16, allocations: 0 / 435.9 MB, free: 15.28 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat