Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.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.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",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.006444/0.006444, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.001266/0.001266, allocations: 190 kB / 16.67 MB, free: 5.48 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08863/0.08863, allocations: 15.3 MB / 305.8 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 60.11 kB / 424.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09207, allocations: 53.61 MB / 478.3 MB, free: 6.328 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction2): time 0.03393/0.126, allocations: 23.09 MB / 0.4896 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1369, allocations: 9.171 MB / 0.4986 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005322/0.1374, allocations: 15.88 kB / 0.4986 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008295/0.1383, allocations: 214.5 kB / 0.4988 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001478/0.1398, allocations: 361.2 kB / 0.4992 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004856/0.1447, allocations: 1.421 MB / 0.5005 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.146, allocations: 0.6736 MB / 0.5012 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.1466, allocations: 229.2 kB / 0.5014 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005366/0.1471, allocations: 319.2 kB / 0.5017 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007019/0.1478, allocations: 346.8 kB / 0.502 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.148, allocations: 36 kB / 0.5021 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003179/0.1512, allocations: 0.8191 MB / 0.5029 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.1515, allocations: 119.5 kB / 0.503 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004592/0.1519, allocations: 262.7 kB / 0.5032 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2036/0.3555, allocations: 1.504 MB / 0.5047 GB, free: 22.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3556, allocations: 0 / 0.5047 GB, free: 22.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3556, allocations: 0 / 0.5047 GB, free: 22.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.3556, allocations: 0.5 kB / 0.5047 GB, free: 22.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001556/0.3572, allocations: 0.9649 MB / 0.5057 GB, free: 21.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3572, allocations: 9.188 kB / 0.5057 GB, free: 21.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.709e-05/0.3573, allocations: 66.48 kB / 0.5057 GB, free: 21.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008104/0.3581, allocations: 159.2 kB / 0.5059 GB, free: 21.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006663/0.3588, allocations: 457.7 kB / 0.5063 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.3588, allocations: 22.41 kB / 0.5063 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-05/0.3589, allocations: 33.94 kB / 0.5064 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008258/0.3598, allocations: 0.5322 MB / 0.5069 GB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3598, allocations: 1.375 kB / 0.5069 GB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.063e-05/0.3598, allocations: 13.56 kB / 0.5069 GB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.3598, allocations: 7.406 kB / 0.5069 GB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.3611, allocations: 0.8065 MB / 0.5077 GB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.3633, allocations: 1.886 MB / 0.5095 GB, free: 20.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.3637, allocations: 214.6 kB / 0.5097 GB, free: 20.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.3639, allocations: 136.8 kB / 0.5099 GB, free: 20.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002706/0.3666, allocations: 2.705 MB / 0.5125 GB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.489e-05/0.3667, allocations: 35.19 kB / 0.5126 GB, free: 18.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.392e-06/0.3667, allocations: 0 / 0.5126 GB, free: 18.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005429/0.3672, allocations: 299.8 kB / 0.5128 GB, free: 18.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.151e-05/0.3673, allocations: 56.75 kB / 0.5129 GB, free: 18.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.3677, allocations: 485 kB / 0.5134 GB, free: 17.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.3677, allocations: 28.02 kB / 0.5134 GB, free: 17.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.3679, allocations: 295.5 kB / 0.5137 GB, free: 17.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.3679, allocations: 69.11 kB / 0.5137 GB, free: 17.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.368, allocations: 100.9 kB / 0.5138 GB, free: 17.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.3681, allocations: 361.3 kB / 0.5142 GB, free: 17.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.3683, allocations: 91.95 kB / 0.5143 GB, free: 17.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.3685, allocations: 351.9 kB / 0.5146 GB, free: 16.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.369, allocations: 0.4952 MB / 0.5151 GB, free: 16.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.369, allocations: 2.844 kB / 0.5151 GB, free: 16.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006989/0.3697, allocations: 490.2 kB / 0.5155 GB, free: 16.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3697, allocations: 9.719 kB / 0.5156 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.3698, allocations: 9.906 kB / 0.5156 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.3698, allocations: 12.38 kB / 0.5156 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003198/0.3701, allocations: 113.4 kB / 0.5157 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.3701, allocations: 22.42 kB / 0.5157 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.3704, allocations: 61.86 kB / 0.5158 GB, free: 16.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.335e-05/0.3705, allocations: 34.27 kB / 0.5158 GB, free: 16.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.3706, allocations: 182.4 kB / 0.516 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.191e-05/0.3707, allocations: 49.45 kB / 0.516 GB, free: 16.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006411/0.3714, allocations: 388.2 kB / 0.5164 GB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3714, allocations: 1.312 kB / 0.5164 GB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3714, allocations: 0.75 kB / 0.5164 GB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3714, allocations: 1.25 kB / 0.5164 GB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007662/0.3722, allocations: 0.7238 MB / 0.5171 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3722, allocations: 1.969 kB / 0.5171 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.338e-05/0.3723, allocations: 11.84 kB / 0.5171 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.269e-06/0.3723, allocations: 11.88 kB / 0.5171 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.3723, allocations: 2.969 kB / 0.5171 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3723, allocations: 4.562 kB / 0.5171 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3723, allocations: 1.438 kB / 0.5171 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.3726, allocations: 200.8 kB / 0.5173 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3727, allocations: 139.7 kB / 0.5175 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.099e-05/0.3728, allocations: 4.344 kB / 0.5175 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.3729, allocations: 2.734 kB / 0.5175 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.693e-05/0.3729, allocations: 15.14 kB / 0.5175 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.3729, allocations: 4.016 kB / 0.5175 GB, free: 15.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005038/0.3735, allocations: 411.1 kB / 0.5179 GB, free: 15.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3735, allocations: 0 / 0.5179 GB, free: 15.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00086/0.3743, allocations: 255 kB / 0.5181 GB, free: 15.44 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009073/0.3752, allocations: 1.046 MB / 0.5191 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003875/0.3756, allocations: 230.8 kB / 0.5194 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3757, allocations: 0 / 0.5194 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.06e-05/0.3757, allocations: 36 kB / 0.5194 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006037/0.3763, allocations: 112.5 kB / 0.5195 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004372/0.3807, allocations: 4.141 MB / 0.5235 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.381, allocations: 0.8123 MB / 0.5243 GB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003991/0.3814, allocations: 135.1 kB / 0.5245 GB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.3816, allocations: 170 kB / 0.5246 GB, free: 11.32 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3816, allocations: 0 / 0.5246 GB, free: 11.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03183/0.4134, allocations: 13.1 MB / 0.5374 GB, free: 7.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.423/8.837, allocations: 4.578 kB / 0.5374 GB, free: 7.398 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)