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: translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 106.1 kB / 16.41 MB, free: 6.008 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.001249/0.001249, allocations: 185.7 kB / 17.34 MB, free: 5.629 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.415/1.415, allocations: 222.9 MB / 241 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.08351/0.08351, allocations: 15.31 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 59.91 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1168, allocations: 53.62 MB / 479.5 MB, free: 5.797 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.03469/0.1515, allocations: 23.01 MB / 0.4907 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.1634, allocations: 9.171 MB / 0.4997 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005375/0.164, allocations: 7.938 kB / 0.4997 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007629/0.1648, allocations: 226.4 kB / 0.4999 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001172/0.1659, allocations: 341.3 kB / 0.5002 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.1699, allocations: 1.421 MB / 0.5016 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001085/0.171, allocations: 0.6697 MB / 0.5022 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004457/0.1715, allocations: 233.2 kB / 0.5025 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004516/0.1719, allocations: 319.2 kB / 0.5028 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006357/0.1726, allocations: 346.8 kB / 0.5031 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.1727, allocations: 36 kB / 0.5031 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002549/0.1753, allocations: 0.823 MB / 0.5039 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.1755, allocations: 119.5 kB / 0.5041 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.1758, allocations: 258.8 kB / 0.5043 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2361/0.4119, allocations: 1.493 MB / 0.5058 GB, free: 22.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.412, allocations: 3.312 kB / 0.5058 GB, free: 22.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.412, allocations: 0.9688 kB / 0.5058 GB, free: 22.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.412, allocations: 0 / 0.5058 GB, free: 22.07 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.001698/0.4137, allocations: 0.931 MB / 0.5067 GB, free: 21.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.4138, allocations: 10.92 kB / 0.5067 GB, free: 21.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008738/0.4147, allocations: 157.7 kB / 0.5068 GB, free: 21.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007002/0.4154, allocations: 457 kB / 0.5073 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.4154, allocations: 22.62 kB / 0.5073 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-05/0.4155, allocations: 29.47 kB / 0.5073 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000877/0.4164, allocations: 0.536 MB / 0.5078 GB, free: 21.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.4164, allocations: 1.594 kB / 0.5078 GB, free: 21.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.394e-05/0.4165, allocations: 10.78 kB / 0.5079 GB, free: 21.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.4165, allocations: 8.469 kB / 0.5079 GB, free: 21.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.4177, allocations: 0.8046 MB / 0.5087 GB, free: 21.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002255/0.42, allocations: 1.875 MB / 0.5105 GB, free: 20.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.4205, allocations: 224.5 kB / 0.5107 GB, free: 20.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.4207, allocations: 132.1 kB / 0.5108 GB, free: 20.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002946/0.4236, allocations: 2.716 MB / 0.5135 GB, free: 18.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.4237, allocations: 35.25 kB / 0.5135 GB, free: 18.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.754e-06/0.4237, allocations: 2.078 kB / 0.5135 GB, free: 18.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005716/0.4243, allocations: 293.3 kB / 0.5138 GB, free: 17.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/0.4243, allocations: 52.62 kB / 0.5138 GB, free: 17.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/0.4249, allocations: 480.3 kB / 0.5143 GB, free: 17.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.4249, allocations: 25.7 kB / 0.5143 GB, free: 17.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.4251, allocations: 294.7 kB / 0.5146 GB, free: 17.58 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.527e-05/0.4252, allocations: 71.11 kB / 0.5147 GB, free: 17.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.4253, allocations: 93.31 kB / 0.5148 GB, free: 17.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.4255, allocations: 363.3 kB / 0.5151 GB, free: 17.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.4256, allocations: 91.28 kB / 0.5152 GB, free: 17.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.426, allocations: 351.3 kB / 0.5155 GB, free: 16.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005155/0.4265, allocations: 0.4907 MB / 0.516 GB, free: 16.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.4265, allocations: 2.938 kB / 0.516 GB, free: 16.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007522/0.4273, allocations: 490 kB / 0.5165 GB, free: 16.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.4273, allocations: 9.594 kB / 0.5165 GB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.4273, allocations: 12.48 kB / 0.5165 GB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.007e-05/0.4274, allocations: 15.66 kB / 0.5165 GB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.4277, allocations: 107.2 kB / 0.5166 GB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.451e-05/0.4277, allocations: 22.94 kB / 0.5166 GB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003117/0.4281, allocations: 60.2 kB / 0.5167 GB, free: 16.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-05/0.4281, allocations: 35.52 kB / 0.5167 GB, free: 16.44 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.0001858/0.4283, allocations: 182.2 kB / 0.5169 GB, free: 16.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.156e-05/0.4284, allocations: 47.94 kB / 0.5169 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007091/0.4291, allocations: 391.6 kB / 0.5173 GB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4291, allocations: 0.875 kB / 0.5173 GB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.4292, allocations: 2.141 kB / 0.5173 GB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4292, allocations: 0 / 0.5173 GB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008448/0.43, allocations: 0.7213 MB / 0.518 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.43, allocations: 3.406 kB / 0.518 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.284e-05/0.4301, allocations: 12.02 kB / 0.518 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.4301, allocations: 11.48 kB / 0.5181 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.4302, allocations: 2.094 kB / 0.5181 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.4302, allocations: 4.234 kB / 0.5181 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.4302, allocations: 2.203 kB / 0.5181 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002451/0.4304, allocations: 198.9 kB / 0.5183 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.4306, allocations: 127.2 kB / 0.5184 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.583e-05/0.4306, allocations: 19.31 kB / 0.5184 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.4308, allocations: 6.469 kB / 0.5184 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.4308, allocations: 7.438 kB / 0.5184 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.4308, allocations: 5.562 kB / 0.5184 GB, free: 15.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005783/0.4314, allocations: 418 kB / 0.5188 GB, free: 15.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4314, allocations: 0 / 0.5188 GB, free: 15.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008621/0.4323, allocations: 244.1 kB / 0.519 GB, free: 15.32 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.0006652/0.433, allocations: 400.1 kB / 0.5194 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000416/0.4334, allocations: 230.1 kB / 0.5196 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4334, allocations: 1.375 kB / 0.5196 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.158e-05/0.4335, allocations: 32.44 kB / 0.5197 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006318/0.4341, allocations: 115.9 kB / 0.5198 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.4353, allocations: 0.7062 MB / 0.5205 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.4355, allocations: 0.8098 MB / 0.5213 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.4358, allocations: 91.3 kB / 0.5214 GB, free: 14.08 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4358, allocations: 0 / 0.5214 GB, free: 14.08 MB / 382.1 MB Notification: Performance of Templates: time 0.01364/0.4494, allocations: 7.972 MB / 0.5291 GB, free: 12.86 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile (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 & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)