Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002279/0.002284, allocations: 187 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.168/2.168, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001146/0.001145, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004086/0.0004085, allocations: 12 kB / 327 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1087, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.58/0.6888, allocations: 165.9 MB / 0.5279 GB, free: 7.254 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4161/1.105, allocations: 13.4 MB / 0.541 GB, free: 2.387 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/1.107, allocations: 27 kB / 0.541 GB, free: 2.387 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001803/1.108, allocations: 366.6 kB / 0.5414 GB, free: 2.387 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01289/1.121, allocations: 2.724 MB / 0.544 GB, free: 2.34 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008629/1.13, allocations: 1.903 MB / 0.5459 GB, free: 2.301 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003843/1.134, allocations: 1.434 MB / 0.5473 GB, free: 2.293 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00186/1.136, allocations: 0.6449 MB / 0.5479 GB, free: 2.223 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008592/1.144, allocations: 2.1 MB / 0.55 GB, free: 2.199 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002705/1.147, allocations: 0.7495 MB / 0.5507 GB, free: 2.195 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004786/1.148, allocations: 58.66 kB / 0.5507 GB, free: 2.195 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01629/1.164, allocations: 5.385 MB / 0.556 GB, free: 2.191 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001306/1.165, allocations: 454.3 kB / 0.5564 GB, free: 2.191 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009739/1.166, allocations: 241 kB / 0.5567 GB, free: 18.16 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009463/1.176, allocations: 2.992 MB / 0.5596 GB, free: 17.94 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/1.176, allocations: 4 kB / 0.5596 GB, free: 17.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.176, allocations: 0 / 0.5596 GB, free: 17.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.017e-05/1.176, allocations: 0 / 0.5596 GB, free: 17.93 MB / 426.7 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.007679/1.184, allocations: 1.832 MB / 0.5614 GB, free: 16.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/1.184, allocations: 10.91 kB / 0.5614 GB, free: 16.88 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005408/1.184, allocations: 146.2 kB / 0.5615 GB, free: 16.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006646/1.185, allocations: 131.3 kB / 0.5617 GB, free: 16.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002028/1.187, allocations: 0.6629 MB / 0.5623 GB, free: 16.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/1.187, allocations: 133.9 kB / 0.5624 GB, free: 16.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003013/1.187, allocations: 89.7 kB / 0.5625 GB, free: 16.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00391/1.191, allocations: 1.454 MB / 0.5639 GB, free: 15.83 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.15e-05/1.191, allocations: 8.594 kB / 0.5639 GB, free: 15.83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002072/1.192, allocations: 38.12 kB / 0.564 GB, free: 15.83 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001461/1.192, allocations: 71.59 kB / 0.5641 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004202/1.196, allocations: 1.465 MB / 0.5655 GB, free: 15.57 MB / 426.7 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.01574/1.212, allocations: 6.395 MB / 0.5717 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00334/1.215, allocations: 0.9813 MB / 0.5727 GB, free: 11.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002182/1.218, allocations: 1.732 MB / 0.5744 GB, free: 9.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.466e-05/1.218, allocations: 46.34 kB / 0.5744 GB, free: 9.211 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001033/1.219, allocations: 101.7 kB / 0.5745 GB, free: 9.156 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 4.038e-06/1.219, allocations: 0 / 0.5745 GB, free: 9.156 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02997/1.249, allocations: 4.964 MB / 0.5794 GB, free: 7.781 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/1.249, allocations: 115.1 kB / 0.5795 GB, free: 7.656 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001476/1.25, allocations: 0.7676 MB / 0.5802 GB, free: 7.398 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003461/1.251, allocations: 49.39 kB / 0.5803 GB, free: 7.367 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004065/1.251, allocations: 470.8 kB / 0.5807 GB, free: 7.047 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004682/1.252, allocations: 345.3 kB / 0.5811 GB, free: 6.801 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/1.252, allocations: 23.78 kB / 0.5811 GB, free: 6.801 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001948/1.252, allocations: 365.8 kB / 0.5814 GB, free: 6.469 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/1.254, allocations: 0.6085 MB / 0.582 GB, free: 6.363 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002413/1.256, allocations: 0.9494 MB / 0.5829 GB, free: 5.852 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/1.259, allocations: 0.7909 MB / 0.5837 GB, free: 5.684 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/1.259, allocations: 6.094 kB / 0.5837 GB, free: 5.684 MB / 426.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.006304/1.265, allocations: 1.88 MB / 0.5856 GB, free: 5.293 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002076/1.267, allocations: 4.064 MB / 0.5895 GB, free: 1.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-05/1.267, allocations: 13.97 kB / 0.5895 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003048/1.271, allocations: 322.1 kB / 0.5898 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/1.273, allocations: 278.1 kB / 0.5901 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002766/1.276, allocations: 0.9239 MB / 0.591 GB, free: 292 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002289/1.278, allocations: 111.8 kB / 0.5911 GB, free: 260 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003179/1.278, allocations: 82.36 kB / 0.5912 GB, free: 248 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/1.278, allocations: 2.531 kB / 0.5912 GB, free: 248 kB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006751/1.285, allocations: 1.812 MB / 0.593 GB, free: 15.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-05/1.285, allocations: 10.16 kB / 0.593 GB, free: 15.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002905/1.288, allocations: 331.4 kB / 0.5933 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/1.291, allocations: 274.5 kB / 0.5936 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002741/1.293, allocations: 0.9214 MB / 0.5945 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/1.295, allocations: 104.3 kB / 0.5946 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/1.296, allocations: 80.59 kB / 0.5946 GB, free: 15.16 MB / 442.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001155/1.297, allocations: 423.6 kB / 0.595 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004011/1.297, allocations: 96 kB / 0.5951 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007062/1.304, allocations: 1.939 MB / 0.597 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/1.305, allocations: 12 kB / 0.597 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/1.305, allocations: 2.125 kB / 0.597 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.139e-05/1.305, allocations: 11.95 kB / 0.5971 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/1.315, allocations: 3.048 MB / 0.6 GB, free: 11.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/1.315, allocations: 0 / 0.6 GB, free: 11.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/1.317, allocations: 190 kB / 0.6002 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003604/1.321, allocations: 390.4 kB / 0.6006 GB, free: 10.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000321/1.321, allocations: 38.53 kB / 0.6006 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002506/1.324, allocations: 0.8931 MB / 0.6015 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/1.324, allocations: 7.984 kB / 0.6015 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009214/1.333, allocations: 2.494 MB / 0.6039 GB, free: 8.301 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/1.334, allocations: 348.2 kB / 0.6043 GB, free: 8.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003433/1.335, allocations: 26.73 kB / 0.6043 GB, free: 8.008 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/1.336, allocations: 83.25 kB / 0.6044 GB, free: 7.941 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/1.337, allocations: 78.58 kB / 0.6044 GB, free: 7.875 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/1.337, allocations: 58.45 kB / 0.6045 GB, free: 7.824 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001185/1.338, allocations: 0.5422 MB / 0.605 GB, free: 7.426 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.844e-06/1.338, allocations: 4 kB / 0.605 GB, free: 7.422 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005352/1.343, allocations: 1.158 MB / 0.6062 GB, free: 6.359 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01402/1.358, allocations: 4.486 MB / 0.6105 GB, free: 2.664 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009104/1.367, allocations: 2.632 MB / 0.6131 GB, free: 0.7422 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/1.367, allocations: 2.062 kB / 0.6131 GB, free: 0.7422 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002688/1.369, allocations: 0.7467 MB / 0.6138 GB, free: 228 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004432/1.374, allocations: 0.4931 MB / 0.6143 GB, free: 15.81 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.39, allocations: 10.95 MB / 0.625 GB, free: 5.121 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/1.392, allocations: 1.141 MB / 0.6261 GB, free: 3.988 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/1.393, allocations: 432.6 kB / 0.6265 GB, free: 3.832 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/1.393, allocations: 0 / 0.6265 GB, free: 3.832 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.823/5.216, allocations: 37.48 MB / 0.6631 GB, free: 14.56 MB / 0.4949 GB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat