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.004771/0.004771, allocations: 104.7 kB / 15.73 MB, free: 5.965 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.00127/0.00127, allocations: 192.5 kB / 16.67 MB, free: 5.883 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08256/0.08256, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 76.09 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/0.08853, allocations: 53.61 MB / 478.3 MB, free: 6.27 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.03568/0.1242, allocations: 23.6 MB / 0.4901 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.1349, allocations: 9.179 MB / 0.4991 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003491/0.1353, allocations: 7.938 kB / 0.4991 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00062/0.1359, allocations: 222.4 kB / 0.4993 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008033/0.1367, allocations: 345.2 kB / 0.4996 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00313/0.1399, allocations: 1.409 MB / 0.501 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008667/0.1408, allocations: 0.6697 MB / 0.5017 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003331/0.1411, allocations: 237.2 kB / 0.5019 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.1415, allocations: 315.1 kB / 0.5022 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004711/0.142, allocations: 338.9 kB / 0.5025 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.33e-05/0.1421, allocations: 40 kB / 0.5026 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.1441, allocations: 0.8307 MB / 0.5034 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.1443, allocations: 115.6 kB / 0.5035 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000273/0.1446, allocations: 258.7 kB / 0.5037 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1786/0.3232, allocations: 1.5 MB / 0.5052 GB, free: 21.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3232, allocations: 0 / 0.5052 GB, free: 21.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3232, allocations: 0.5625 kB / 0.5052 GB, free: 21.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.3232, allocations: 0 / 0.5052 GB, free: 21.69 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.00124/0.3245, allocations: 0.9611 MB / 0.5061 GB, free: 21.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3245, allocations: 9.969 kB / 0.5061 GB, free: 21.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.975e-05/0.3246, allocations: 68.36 kB / 0.5062 GB, free: 21.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007349/0.3253, allocations: 160.1 kB / 0.5064 GB, free: 20.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005262/0.3259, allocations: 456.9 kB / 0.5068 GB, free: 20.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.3259, allocations: 23.41 kB / 0.5068 GB, free: 20.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.796e-05/0.326, allocations: 30.31 kB / 0.5069 GB, free: 20.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007578/0.3268, allocations: 0.5382 MB / 0.5074 GB, free: 20.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3268, allocations: 2.594 kB / 0.5074 GB, free: 20.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.3268, allocations: 12.62 kB / 0.5074 GB, free: 20.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.3268, allocations: 7.719 kB / 0.5074 GB, free: 20.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.328, allocations: 0.8032 MB / 0.5082 GB, free: 20.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.33, allocations: 1.885 MB / 0.51 GB, free: 19.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/0.3304, allocations: 217.7 kB / 0.5102 GB, free: 19.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.3306, allocations: 134.8 kB / 0.5104 GB, free: 19.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002513/0.3331, allocations: 2.709 MB / 0.513 GB, free: 17.58 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.3332, allocations: 30.56 kB / 0.513 GB, free: 17.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.412e-06/0.3332, allocations: 0 / 0.513 GB, free: 17.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005274/0.3337, allocations: 293.9 kB / 0.5133 GB, free: 17.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.041e-05/0.3337, allocations: 56.94 kB / 0.5134 GB, free: 17.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/0.3342, allocations: 482.4 kB / 0.5138 GB, free: 17.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.3342, allocations: 29.52 kB / 0.5139 GB, free: 17.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.3344, allocations: 302.4 kB / 0.5141 GB, free: 17.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.3344, allocations: 68.69 kB / 0.5142 GB, free: 17.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.3345, allocations: 101.5 kB / 0.5143 GB, free: 17.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.757e-05/0.3346, allocations: 361.1 kB / 0.5147 GB, free: 16.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.3348, allocations: 87.69 kB / 0.5147 GB, free: 16.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.335, allocations: 358.7 kB / 0.5151 GB, free: 16.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.3354, allocations: 496.5 kB / 0.5156 GB, free: 16.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.3354, allocations: 5.688 kB / 0.5156 GB, free: 16.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006774/0.3361, allocations: 491.8 kB / 0.516 GB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3362, allocations: 11.61 kB / 0.516 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.3362, allocations: 11.91 kB / 0.5161 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.3362, allocations: 12.38 kB / 0.5161 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.3365, allocations: 111.3 kB / 0.5162 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.3365, allocations: 18 kB / 0.5162 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.3368, allocations: 64.05 kB / 0.5162 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.984e-05/0.3368, allocations: 39.08 kB / 0.5163 GB, free: 15.95 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.0001355/0.337, allocations: 181.9 kB / 0.5165 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.878e-05/0.3371, allocations: 48.98 kB / 0.5165 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006195/0.3377, allocations: 387.1 kB / 0.5169 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3377, allocations: 1.781 kB / 0.5169 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.3377, allocations: 0 / 0.5169 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3377, allocations: 3.812 kB / 0.5169 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006639/0.3384, allocations: 0.724 MB / 0.5176 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3384, allocations: 2.281 kB / 0.5176 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.306e-05/0.3385, allocations: 12.56 kB / 0.5176 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3385, allocations: 6.156 kB / 0.5176 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.3385, allocations: 3 kB / 0.5176 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.3385, allocations: 7.438 kB / 0.5176 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3385, allocations: 6.75 kB / 0.5176 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.3387, allocations: 198.4 kB / 0.5178 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.376e-05/0.3388, allocations: 137.8 kB / 0.5179 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.072e-05/0.3389, allocations: 6.312 kB / 0.5179 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.3391, allocations: 2.812 kB / 0.518 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.998e-05/0.3391, allocations: 6.734 kB / 0.518 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.118e-06/0.3391, allocations: 7.438 kB / 0.518 GB, free: 14.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005068/0.3396, allocations: 410.4 kB / 0.5184 GB, free: 14.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3396, allocations: 0 / 0.5184 GB, free: 14.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006937/0.3403, allocations: 257.7 kB / 0.5186 GB, free: 14.81 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.0008074/0.3411, allocations: 1.034 MB / 0.5196 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003623/0.3415, allocations: 235.6 kB / 0.5198 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3415, allocations: 1.344 kB / 0.5198 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.941e-05/0.3416, allocations: 33.95 kB / 0.5199 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005677/0.3421, allocations: 112.7 kB / 0.52 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004031/0.3462, allocations: 4.147 MB / 0.524 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/0.3464, allocations: 0.8129 MB / 0.5248 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003759/0.3468, allocations: 138 kB / 0.525 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.347, allocations: 167.9 kB / 0.5251 GB, free: 10.56 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.347, allocations: 0 / 0.5251 GB, free: 10.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03365/0.3807, allocations: 13.1 MB / 0.5379 GB, free: 6.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.519/8.9, allocations: 10.17 kB / 0.5379 GB, free: 6.434 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)