Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfAlcohol.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.HeatingOfAlcohol,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfAlcohol",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfAlcohol,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfAlcohol",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.004844/0.004844, allocations: 107.3 kB / 15.74 MB, free: 6.039 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.00111/0.00111, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2438/0.2438, allocations: 15.33 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2813, allocations: 53.61 MB / 478.3 MB, free: 25.63 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfAlcohol): time 0.004634/0.286, allocations: 4.239 MB / 482.5 MB, free: 22.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00843/0.2945, allocations: 8.684 MB / 491.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007005/0.2952, allocations: 13.5 kB / 491.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005843/0.2958, allocations: 181.8 kB / 491.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001851/0.2977, allocations: 0.7879 MB / 492.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.3008, allocations: 1.003 MB / 493.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.3021, allocations: 0.8805 MB / 494.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007477/0.3029, allocations: 0.4892 MB / 494.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005879/0.3035, allocations: 451.2 kB / 495 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006563/0.3042, allocations: 473.6 kB / 495.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.3043, allocations: 77.47 kB / 495.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003174/0.3075, allocations: 0.9064 MB / 496.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002027/0.3077, allocations: 183.2 kB / 496.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004545/0.3082, allocations: 407.8 kB / 497 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002734/0.3109, allocations: 1.788 MB / 498.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.311, allocations: 0 / 498.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.311, allocations: 0 / 498.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.311, allocations: 0 / 498.8 MB, free: 11.12 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001779/0.3128, allocations: 1.144 MB / 500 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.3128, allocations: 14.06 kB / 500 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.3129, allocations: 107.7 kB / 0.4884 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006217/0.3136, allocations: 154.1 kB / 0.4885 GB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006518/0.3142, allocations: 455.5 kB / 0.489 GB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.3143, allocations: 57.88 kB / 0.489 GB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3144, allocations: 64.38 kB / 0.4891 GB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.3155, allocations: 0.7594 MB / 0.4898 GB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.3156, allocations: 0 / 0.4898 GB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.032e-05/0.3156, allocations: 26.34 kB / 0.4898 GB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.306e-05/0.3157, allocations: 19.55 kB / 0.4899 GB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.317, allocations: 0.8706 MB / 0.4907 GB, free: 8.785 MB / 366.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.00327/0.3202, allocations: 2.336 MB / 0.493 GB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.3219, allocations: 1.027 MB / 0.494 GB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/0.3224, allocations: 290.9 kB / 0.4943 GB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003051/0.3254, allocations: 2.864 MB / 0.4971 GB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.702e-05/0.3254, allocations: 34.56 kB / 0.4971 GB, free: 3.227 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.3255, allocations: 0 / 0.4971 GB, free: 3.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.01397/0.3394, allocations: 2.805 MB / 0.4998 GB, free: 348 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.3395, allocations: 63.91 kB / 0.4999 GB, free: 272 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004086/0.3399, allocations: 413.6 kB / 0.5003 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.811e-05/0.34, allocations: 33.7 kB / 0.5003 GB, free: 15.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.3402, allocations: 363.1 kB / 0.5007 GB, free: 15.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.3403, allocations: 193.2 kB / 0.5009 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.3405, allocations: 146.6 kB / 0.501 GB, free: 15.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3407, allocations: 362.7 kB / 0.5013 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.3411, allocations: 205.9 kB / 0.5015 GB, free: 14.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.3416, allocations: 466.2 kB / 0.502 GB, free: 13.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009417/0.3425, allocations: 0.7173 MB / 0.5027 GB, free: 13.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.3425, allocations: 4 kB / 0.5027 GB, free: 13.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.004469/0.347, allocations: 1.14 MB / 0.5038 GB, free: 12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.347, allocations: 8 kB / 0.5038 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.3471, allocations: 12 kB / 0.5038 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003538/0.3506, allocations: 453.6 kB / 0.5042 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005127/0.3511, allocations: 159.7 kB / 0.5044 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007545/0.3587, allocations: 4.631 MB / 0.5089 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005776/0.3593, allocations: 28 kB / 0.5089 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-05/0.3594, allocations: 43.98 kB / 0.509 GB, free: 6.387 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (81): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003405/0.3597, allocations: 209.5 kB / 0.5092 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3599, allocations: 55.41 kB / 0.5092 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005319/0.3652, allocations: 1.096 MB / 0.5103 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3652, allocations: 7.938 kB / 0.5103 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3652, allocations: 4 kB / 0.5103 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3652, allocations: 7.922 kB / 0.5103 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00601/0.3712, allocations: 1.813 MB / 0.5121 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.3713, allocations: 0 / 0.5121 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.3716, allocations: 87.91 kB / 0.5122 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004481/0.3761, allocations: 0.5101 MB / 0.5127 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/0.3762, allocations: 16 kB / 0.5127 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008147/0.3843, allocations: 5.969 MB / 0.5185 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3843, allocations: 0 / 0.5185 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005644/0.39, allocations: 1.404 MB / 0.5199 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.3902, allocations: 128.5 kB / 0.52 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.3903, allocations: 12 kB / 0.52 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.3908, allocations: 16 kB / 0.5201 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.391, allocations: 60.42 kB / 0.5201 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-05/0.3911, allocations: 31.98 kB / 0.5201 GB, free: 10.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003561/0.3915, allocations: 271.1 kB / 0.5204 GB, free: 10.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3915, allocations: 0 / 0.5204 GB, free: 10.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00141/0.3929, allocations: 399.7 kB / 0.5208 GB, free: 9.691 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (Ethanol.logn,liquidWater.amountOfBonds,liquidWater.logn) * 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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006674/0.3996, allocations: 2.298 MB / 0.523 GB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.4012, allocations: 0.9009 MB / 0.5239 GB, free: 6.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4013, allocations: 0 / 0.5239 GB, free: 6.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.4023, allocations: 0.7299 MB / 0.5246 GB, free: 5.641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000794/0.4031, allocations: 145.9 kB / 0.5248 GB, free: 5.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.4164, allocations: 6.077 MB / 0.5307 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.4169, allocations: 0.9029 MB / 0.5316 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004532/0.4174, allocations: 128.8 kB / 0.5317 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/0.4177, allocations: 272 kB / 0.532 GB, free: 13.75 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4178, allocations: 0 / 0.532 GB, free: 13.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04804/0.4658, allocations: 21.64 MB / 0.5531 GB, free: 8.285 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/14.56, allocations: 3.938 kB / 0.5531 GB, free: 8.281 MB / 430.1 MB (rm -f Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfAlcohol.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfAlcohol.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.HeatingOfAlcohol_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_HeatingOfAlcohol.fmu > Chemical_Chemical.Examples.HeatingOfAlcohol.pipe 2>&1)