Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",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.001249/0.001249, allocations: 106.6 kB / 17.06 MB, free: 6.102 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.001259/0.00126, allocations: 193.4 kB / 18 MB, free: 5.172 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 43.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2236, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4198/0.6435, allocations: 205 MB / 0.5911 GB, free: 1.223 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.6537, allocations: 10.36 MB / 0.6012 GB, free: 0.918 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008914/0.6546, allocations: 20.62 kB / 0.6012 GB, free: 0.918 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.6557, allocations: 465.2 kB / 0.6016 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00691/0.6627, allocations: 3.199 MB / 0.6048 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005768/0.6684, allocations: 2.684 MB / 0.6074 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002762/0.6712, allocations: 2.628 MB / 0.6099 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009833/0.6722, allocations: 0.7841 MB / 0.6107 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005491/0.6777, allocations: 2.785 MB / 0.6134 GB, free: 15.64 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/0.6797, allocations: 1.068 MB / 0.6145 GB, free: 15.15 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002407/0.6799, allocations: 119.3 kB / 0.6146 GB, free: 15.15 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01138/0.6913, allocations: 6.13 MB / 0.6206 GB, free: 11.46 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009831/0.6923, allocations: 0.5402 MB / 0.6211 GB, free: 10.93 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00141/0.6938, allocations: 0.6381 MB / 0.6217 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.7042, allocations: 4.652 MB / 0.6263 GB, free: 5.934 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.7042, allocations: 0 / 0.6263 GB, free: 5.934 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.7042, allocations: 0 / 0.6263 GB, free: 5.934 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.816e-05/0.7043, allocations: 0 / 0.6263 GB, free: 5.934 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.005372/0.7097, allocations: 2.117 MB / 0.6283 GB, free: 3.766 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.7097, allocations: 10.56 kB / 0.6283 GB, free: 3.758 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003046/0.71, allocations: 149.8 kB / 0.6285 GB, free: 3.605 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005535/0.7106, allocations: 131.3 kB / 0.6286 GB, free: 3.477 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.712, allocations: 0.7083 MB / 0.6293 GB, free: 2.758 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.7121, allocations: 135.5 kB / 0.6294 GB, free: 2.617 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001917/0.7123, allocations: 95.31 kB / 0.6295 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002571/0.7149, allocations: 1.451 MB / 0.6309 GB, free: 1.027 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.715, allocations: 6.531 kB / 0.631 GB, free: 1.023 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.7151, allocations: 42.5 kB / 0.631 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.964e-05/0.7152, allocations: 65.95 kB / 0.6311 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002584/0.7178, allocations: 1.467 MB / 0.6325 GB, free: 15.47 MB / 494.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.009424/0.7272, allocations: 6.343 MB / 0.6387 GB, free: 8.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/0.7293, allocations: 0.972 MB / 0.6396 GB, free: 7.812 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008704/0.7302, allocations: 0.5216 MB / 0.6401 GB, free: 7.293 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001616/0.7318, allocations: 1.808 MB / 0.6419 GB, free: 5.105 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/0.7319, allocations: 43.56 kB / 0.6419 GB, free: 5.051 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003953/0.7323, allocations: 99.28 kB / 0.642 GB, free: 4.953 MB / 494.1 MB Notification: Performance of pre-optimization done (n=84): time 3.667e-06/0.7323, allocations: 0 / 0.642 GB, free: 4.953 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01705/0.7494, allocations: 4.796 MB / 0.6467 GB, free: 136 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.988e-05/0.7495, allocations: 111.8 kB / 0.6468 GB, free: 0 / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.7506, allocations: 0.7777 MB / 0.6476 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001502/0.7508, allocations: 53.64 kB / 0.6476 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003863/0.7512, allocations: 464.2 kB / 0.6481 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003697/0.7516, allocations: 359.4 kB / 0.6484 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004958/0.7521, allocations: 246.8 kB / 0.6487 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002232/0.7523, allocations: 406.7 kB / 0.6491 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.7537, allocations: 0.615 MB / 0.6497 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.7553, allocations: 0.9587 MB / 0.6506 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003007/0.7583, allocations: 1.655 MB / 0.6522 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.7584, allocations: 4 kB / 0.6522 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004244/0.7626, allocations: 1.938 MB / 0.6541 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.764e-05/0.7627, allocations: 67.41 kB / 0.6542 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/0.7627, allocations: 8 kB / 0.6542 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/0.7643, allocations: 311.6 kB / 0.6545 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.7654, allocations: 271.5 kB / 0.6547 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.7671, allocations: 0.9021 MB / 0.6556 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.7681, allocations: 63.95 kB / 0.6557 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001709/0.7683, allocations: 67.98 kB / 0.6557 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001681/0.77, allocations: 0.8538 MB / 0.6566 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001625/0.7716, allocations: 0.9483 MB / 0.6575 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002951/0.7746, allocations: 1.633 MB / 0.6591 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.234e-06/0.7746, allocations: 0 / 0.6591 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004094/0.7787, allocations: 1.91 MB / 0.661 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/0.7788, allocations: 66.66 kB / 0.661 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.7788, allocations: 8 kB / 0.661 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/0.7802, allocations: 319.1 kB / 0.6613 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.7813, allocations: 274.7 kB / 0.6616 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.783, allocations: 0.9097 MB / 0.6625 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009811/0.784, allocations: 68.02 kB / 0.6625 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.7841, allocations: 70.86 kB / 0.6626 GB, free: 15.34 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004061/0.7846, allocations: 255 kB / 0.6629 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003057/0.7849, allocations: 103.4 kB / 0.663 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004119/0.789, allocations: 1.963 MB / 0.6649 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.789, allocations: 11.98 kB / 0.6649 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.789, allocations: 4 kB / 0.6649 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.7891, allocations: 3.984 kB / 0.6649 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005592/0.7947, allocations: 3.095 MB / 0.6679 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.7947, allocations: 4 kB / 0.6679 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008308/0.7955, allocations: 184.5 kB / 0.6681 GB, free: 9.664 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/0.7973, allocations: 384.3 kB / 0.6685 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.7974, allocations: 35.98 kB / 0.6685 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001495/0.7989, allocations: 0.8833 MB / 0.6694 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.799, allocations: 4 kB / 0.6694 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004573/0.8035, allocations: 2.382 MB / 0.6717 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006262/0.8042, allocations: 328.3 kB / 0.672 GB, free: 5.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002361/0.8044, allocations: 28 kB / 0.672 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009519/0.8054, allocations: 63.94 kB / 0.6721 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.8056, allocations: 71.94 kB / 0.6722 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.8057, allocations: 55.95 kB / 0.6722 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00081/0.8065, allocations: 0.5693 MB / 0.6728 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8065, allocations: 0 / 0.6728 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003028/0.8096, allocations: 1.138 MB / 0.6739 GB, free: 3.668 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * 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 (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0077/0.8173, allocations: 3.91 MB / 0.6777 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00534/0.8226, allocations: 2.625 MB / 0.6803 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.8227, allocations: 8.688 kB / 0.6803 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.8242, allocations: 0.7343 MB / 0.681 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/0.827, allocations: 0.5553 MB / 0.6815 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/0.8482, allocations: 11.2 MB / 0.6925 GB, free: 352 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009268/0.8492, allocations: 1.119 MB / 0.6936 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002045/0.8512, allocations: 0.7071 MB / 0.6942 GB, free: 14.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007216/0.852, allocations: 403.3 kB / 0.6946 GB, free: 14.09 MB / 0.545 GB Notification: Performance of SimCode: time 7.52e-07/0.852, allocations: 0 / 0.6946 GB, free: 14.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1026/0.9546, allocations: 50.74 MB / 0.7442 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/15.02, allocations: 8 kB / 0.7442 GB, free: 11.71 MB / 0.5919 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)