Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1086/0.1086, allocations: 15.26 MB / 27.82 MB, free: 5.395 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 184.5 kB / 32.7 MB, free: 0.5156 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 221.4 MB / 258.8 MB, free: 4 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008842/0.0008842, allocations: 91.53 kB / 314 MB, free: 15.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.158e-05/3.17e-05, allocations: 0 / 376.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3, allocations: 54.61 MB / 431.2 MB, free: 50.09 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1277/0.4278, allocations: 103.3 MB / 0.522 GB, free: 11.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.428, allocations: 67.97 kB / 0.522 GB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3996/0.8276, allocations: 65.05 MB / 0.5856 GB, free: 91.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.8277, allocations: 0 / 0.5856 GB, free: 91.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.589e-05/0.8277, allocations: 29.62 kB / 0.5856 GB, free: 91.5 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.00412/0.8319, allocations: 1.864 MB / 0.5874 GB, free: 90.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.8319, allocations: 9.625 kB / 0.5874 GB, free: 90.68 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002746/0.8322, allocations: 207.6 kB / 0.5876 GB, free: 90.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.8339, allocations: 453.4 kB / 0.588 GB, free: 90.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.836, allocations: 0.9706 MB / 0.589 GB, free: 90.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.8362, allocations: 169 kB / 0.5892 GB, free: 90.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002734/0.8365, allocations: 151.1 kB / 0.5893 GB, free: 90.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004433/0.8409, allocations: 2.808 MB / 0.592 GB, free: 90.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.8409, allocations: 1 kB / 0.592 GB, free: 90.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.8411, allocations: 58.33 kB / 0.5921 GB, free: 90.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.401e-05/0.8412, allocations: 35.56 kB / 0.5921 GB, free: 90.02 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00601/0.8472, allocations: 4.068 MB / 0.5961 GB, free: 90 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01388/0.8611, allocations: 8.279 MB / 0.6042 GB, free: 88.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005305/0.8664, allocations: 3.811 MB / 0.6079 GB, free: 87.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001692/0.8681, allocations: 1.387 MB / 0.6093 GB, free: 87.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006207/0.8687, allocations: 419.4 kB / 0.6097 GB, free: 87.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.8688, allocations: 50.88 kB / 0.6097 GB, free: 87.6 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001287/0.8701, allocations: 213.1 kB / 0.6099 GB, free: 87.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=170): time 4.338e-06/0.8701, allocations: 2.062 kB / 0.6099 GB, free: 87.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.02995/0.9, allocations: 11.22 MB / 0.6209 GB, free: 83.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007486/0.9076, allocations: 4.435 MB / 0.6252 GB, free: 80.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.9086, allocations: 0.9595 MB / 0.6261 GB, free: 79.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004274/0.9091, allocations: 62.61 kB / 0.6262 GB, free: 79.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.9093, allocations: 0.5272 MB / 0.6267 GB, free: 79.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000495/0.9098, allocations: 0.7773 MB / 0.6275 GB, free: 78.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.91, allocations: 43.72 kB / 0.6275 GB, free: 78.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.857e-05/0.91, allocations: 382.9 kB / 0.6279 GB, free: 78.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001827/0.9119, allocations: 1.637 MB / 0.6295 GB, free: 77.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.9137, allocations: 1.883 MB / 0.6313 GB, free: 76.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.9156, allocations: 1.781 MB / 0.6331 GB, free: 76.28 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.9156, allocations: 0 / 0.6331 GB, free: 76.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.008128/0.9238, allocations: 4.492 MB / 0.6374 GB, free: 74.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.9238, allocations: 11.19 kB / 0.6375 GB, free: 74.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.9238, allocations: 2.875 kB / 0.6375 GB, free: 74.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003302/0.9271, allocations: 0.7268 MB / 0.6382 GB, free: 74.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/0.929, allocations: 475.2 kB / 0.6386 GB, free: 74.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005095/0.9341, allocations: 4.426 MB / 0.6429 GB, free: 70.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002932/0.9371, allocations: 250.7 kB / 0.6432 GB, free: 70.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/0.9373, allocations: 111.3 kB / 0.6433 GB, free: 70.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003832/0.9377, allocations: 212.8 kB / 0.6435 GB, free: 70.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002693/0.938, allocations: 135.8 kB / 0.6436 GB, free: 70.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/0.9495, allocations: 5.041 MB / 0.6485 GB, free: 68.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01065/0.9601, allocations: 4.508 MB / 0.6529 GB, free: 67.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.9602, allocations: 0 / 0.6529 GB, free: 67.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-05/0.9603, allocations: 12.38 kB / 0.653 GB, free: 67.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/0.9781, allocations: 10.6 MB / 0.6633 GB, free: 59.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/0.9781, allocations: 8 kB / 0.6633 GB, free: 59.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/0.98, allocations: 427.2 kB / 0.6637 GB, free: 58.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006459/0.9864, allocations: 1.417 MB / 0.6651 GB, free: 58.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004842/0.987, allocations: 82.64 kB / 0.6652 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009833/0.9968, allocations: 7.268 MB / 0.6723 GB, free: 51.33 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005341/1.002, allocations: 2.551 MB / 0.6748 GB, free: 48.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/1.015, allocations: 7.606 MB / 0.6822 GB, free: 41.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006115/1.016, allocations: 256.4 kB / 0.6825 GB, free: 41.51 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002399/1.016, allocations: 55.61 kB / 0.6825 GB, free: 41.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/1.018, allocations: 154.7 kB / 0.6827 GB, free: 41.36 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004082/1.018, allocations: 221.5 kB / 0.6829 GB, free: 41.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/1.018, allocations: 96.72 kB / 0.683 GB, free: 41.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007412/1.019, allocations: 0.7544 MB / 0.6837 GB, free: 40.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.019, allocations: 3.938 kB / 0.6837 GB, free: 40.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003558/1.023, allocations: 1.389 MB / 0.6851 GB, free: 39.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 6 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,7 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01594/1.039, allocations: 11.88 MB / 0.6967 GB, free: 28.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005827/1.044, allocations: 4.101 MB / 0.7007 GB, free: 24.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.044, allocations: 0 / 0.7007 GB, free: 24.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003804/1.048, allocations: 2.585 MB / 0.7032 GB, free: 21.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/1.05, allocations: 288.4 kB / 0.7035 GB, free: 21.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/1.057, allocations: 4.206 MB / 0.7076 GB, free: 17.28 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006298/1.057, allocations: 1.352 MB / 0.7089 GB, free: 15.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001349/1.059, allocations: 334.2 kB / 0.7092 GB, free: 15.58 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009499/1.06, allocations: 0.7022 MB / 0.7099 GB, free: 14.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.583e-06/1.06, allocations: 4 kB / 0.7099 GB, free: 14.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3368/1.397, allocations: 60.93 MB / 0.7694 GB, free: 114.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/1.397, allocations: 176.8 kB / 0.7696 GB, free: 114 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.118/5.515, allocations: 0 / 0.7696 GB, free: 114 MB / 474.7 MB (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)