Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 109.4 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 46.36 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.0955, allocations: 49.44 MB / 350.1 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2701/0.3657, allocations: 90.09 MB / 440.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03161/0.3973, allocations: 21.31 MB / 461.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002647/0.4, allocations: 91.38 kB / 461.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002839/0.4029, allocations: 0.9434 MB / 462.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009914/0.4128, allocations: 3.722 MB / 466.3 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0141/0.427, allocations: 5.674 MB / 472 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008962/0.4359, allocations: 7.045 MB / 479 MB, free: 3.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00359/0.4396, allocations: 1.843 MB / 480.9 MB, free: 1.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.407/0.8465, allocations: 74.87 MB / 0.5427 GB, free: 61.15 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06296/0.9095, allocations: 31.92 MB / 0.5739 GB, free: 51.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009532/0.9105, allocations: 249.8 kB / 0.5741 GB, free: 51.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01278/0.9233, allocations: 6.087 MB / 0.5801 GB, free: 49.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001959/0.9253, allocations: 1.087 MB / 0.5811 GB, free: 49.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002978/0.9283, allocations: 1.495 MB / 0.5826 GB, free: 48.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009187/0.9375, allocations: 5.461 MB / 0.5879 GB, free: 44.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.9376, allocations: 3.938 kB / 0.5879 GB, free: 44.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.9376, allocations: 0 / 0.5879 GB, free: 44.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.346e-05/0.9377, allocations: 3.188 kB / 0.5879 GB, free: 44.34 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.007609/0.9453, allocations: 3.489 MB / 0.5913 GB, free: 41.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.9453, allocations: 12.03 kB / 0.5914 GB, free: 41.3 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004205/0.9458, allocations: 345 kB / 0.5917 GB, free: 41.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000892/0.9467, allocations: 315.1 kB / 0.592 GB, free: 40.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.9488, allocations: 1.574 MB / 0.5935 GB, free: 39.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.9489, allocations: 214.6 kB / 0.5937 GB, free: 39.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000273/0.9492, allocations: 205.1 kB / 0.5939 GB, free: 39.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004166/0.9534, allocations: 3.307 MB / 0.5971 GB, free: 36.81 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.473e-05/0.9534, allocations: 8 kB / 0.5972 GB, free: 36.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/0.9536, allocations: 83.64 kB / 0.5972 GB, free: 36.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002179/0.9539, allocations: 250.8 kB / 0.5975 GB, free: 36.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004257/0.9581, allocations: 3.112 MB / 0.6005 GB, free: 34.5 MB / 446.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.0169/0.975, allocations: 13.86 MB / 0.614 GB, free: 22.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00363/0.9787, allocations: 2.209 MB / 0.6162 GB, free: 19.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/0.9804, allocations: 1.345 MB / 0.6175 GB, free: 18.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006813/0.9872, allocations: 5.865 MB / 0.6232 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.9873, allocations: 52.56 kB / 0.6233 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007062/0.988, allocations: 176.3 kB / 0.6235 GB, free: 11.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.447e-06/0.988, allocations: 0 / 0.6235 GB, free: 11.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.01991/1.008, allocations: 9.161 MB / 0.6324 GB, free: 2.676 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/1.008, allocations: 73.41 kB / 0.6325 GB, free: 2.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002147/1.01, allocations: 1.841 MB / 0.6343 GB, free: 0.707 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002357/1.01, allocations: 61.7 kB / 0.6343 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005804/1.011, allocations: 1.06 MB / 0.6354 GB, free: 15.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005614/1.012, allocations: 0.6848 MB / 0.636 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008448/1.012, allocations: 456.4 kB / 0.6365 GB, free: 14.44 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.581e-05/1.013, allocations: 305.1 kB / 0.6368 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/1.014, allocations: 1.229 MB / 0.638 GB, free: 12.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002458/1.017, allocations: 1.808 MB / 0.6397 GB, free: 10.86 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004668/1.022, allocations: 3.161 MB / 0.6428 GB, free: 7.531 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/1.022, allocations: 4 kB / 0.6428 GB, free: 7.527 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007366/1.029, allocations: 4.291 MB / 0.647 GB, free: 3.328 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.745e-05/1.029, allocations: 12 kB / 0.647 GB, free: 3.316 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/1.029, allocations: 20.88 kB / 0.647 GB, free: 3.297 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0138/1.043, allocations: 3.654 MB / 0.6506 GB, free: 15.65 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/1.044, allocations: 325.1 kB / 0.6509 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006672/1.051, allocations: 3.952 MB / 0.6548 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002364/1.053, allocations: 95.94 kB / 0.6549 GB, free: 11.31 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004203/1.054, allocations: 115.5 kB / 0.655 GB, free: 11.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002931/1.057, allocations: 1.672 MB / 0.6566 GB, free: 9.523 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00238/1.059, allocations: 1.759 MB / 0.6583 GB, free: 7.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004428/1.064, allocations: 3.046 MB / 0.6613 GB, free: 4.301 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.239e-05/1.064, allocations: 8 kB / 0.6613 GB, free: 4.293 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007171/1.071, allocations: 4.028 MB / 0.6653 GB, free: 368 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/1.071, allocations: 15.94 kB / 0.6653 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.981e-05/1.071, allocations: 16.62 kB / 0.6653 GB, free: 336 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009816/1.081, allocations: 2.764 MB / 0.668 GB, free: 13.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/1.082, allocations: 372.1 kB / 0.6683 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005499/1.088, allocations: 3.472 MB / 0.6717 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/1.09, allocations: 91.89 kB / 0.6718 GB, free: 9.676 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002319/1.09, allocations: 112 kB / 0.6719 GB, free: 9.566 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0006795/1.091, allocations: 320.5 kB / 0.6722 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004593/1.091, allocations: 225.4 kB / 0.6724 GB, free: 9.051 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007755/1.099, allocations: 3.958 MB / 0.6763 GB, free: 5.098 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-05/1.099, allocations: 24 kB / 0.6763 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/1.099, allocations: 3.938 kB / 0.6763 GB, free: 5.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005762/1.105, allocations: 3.375 MB / 0.6796 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/1.115, allocations: 6.296 MB / 0.6858 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/1.115, allocations: 4 kB / 0.6858 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/1.117, allocations: 314.6 kB / 0.6861 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004078/1.121, allocations: 1.167 MB / 0.6872 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002366/1.121, allocations: 79.89 kB / 0.6873 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/1.131, allocations: 11.06 MB / 0.6981 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.131, allocations: 4.031 kB / 0.6981 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.141, allocations: 5.176 MB / 0.7032 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/1.143, allocations: 0.5992 MB / 0.7037 GB, free: 8.129 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006476/1.144, allocations: 56.17 kB / 0.7038 GB, free: 8.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/1.145, allocations: 75.89 kB / 0.7039 GB, free: 8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004206/1.146, allocations: 169.7 kB / 0.704 GB, free: 7.832 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/1.146, allocations: 83.95 kB / 0.7041 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001862/1.148, allocations: 1.257 MB / 0.7053 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/1.148, allocations: 0 / 0.7053 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004587/1.153, allocations: 1.726 MB / 0.707 GB, free: 4.746 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01099/1.164, allocations: 6.652 MB / 0.7135 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01529/1.179, allocations: 6.852 MB / 0.7202 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/1.179, allocations: 6.719 kB / 0.7202 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004086/1.183, allocations: 2.242 MB / 0.7224 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005364/1.188, allocations: 1.049 MB / 0.7234 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1939/1.382, allocations: 26.73 MB / 0.7495 GB, free: 234.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/1.383, allocations: 1.877 MB / 0.7514 GB, free: 233.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002884/1.386, allocations: 0.9551 MB / 0.7523 GB, free: 233.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.387, allocations: 1.014 MB / 0.7533 GB, free: 233.1 MB / 0.5294 GB Notification: Performance of SimCode: time 5.91e-07/1.387, allocations: 0 / 0.7533 GB, free: 233.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2822/1.67, allocations: 97.77 MB / 0.8488 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.08/16.75, allocations: 7.781 kB / 0.8488 GB, free: 143.2 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat