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.0008019/0.0008019, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000977/0.0009772, allocations: 180 kB / 16.92 MB, free: 6.652 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.534/1.534, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2421/0.2421, allocations: 15.28 MB / 307.4 MB, free: 15.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005475/0.0005474, allocations: 8 kB / 372.7 MB, free: 3.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.3755, allocations: 54.63 MB / 427.4 MB, free: 40.22 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.02713/0.4027, allocations: 22.9 MB / 450.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009344/0.4121, allocations: 9.053 MB / 459.3 MB, free: 27.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007328/0.4128, allocations: 20 kB / 459.4 MB, free: 27.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006695/0.4135, allocations: 202.9 kB / 459.6 MB, free: 27.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009833/0.4145, allocations: 312.3 kB / 459.9 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004232/0.4187, allocations: 1.241 MB / 461.1 MB, free: 26.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.4198, allocations: 0.6676 MB / 461.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004172/0.4202, allocations: 199.2 kB / 462 MB, free: 26.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005707/0.4208, allocations: 299.3 kB / 462.3 MB, free: 26.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007005/0.4215, allocations: 335.7 kB / 462.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.4217, allocations: 17.78 kB / 462.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00308/0.4248, allocations: 0.8106 MB / 463.4 MB, free: 26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001779/0.425, allocations: 112.4 kB / 463.5 MB, free: 25.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004301/0.4254, allocations: 264.6 kB / 463.8 MB, free: 25.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00181/0.4272, allocations: 1.083 MB / 464.9 MB, free: 25.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4272, allocations: 0 / 464.9 MB, free: 25.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4272, allocations: 0 / 464.9 MB, free: 25.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.4273, allocations: 0 / 464.9 MB, free: 25.37 MB / 350.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.001919/0.4292, allocations: 0.8163 MB / 465.7 MB, free: 24.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.4293, allocations: 13.25 kB / 465.7 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009737/0.4302, allocations: 166.9 kB / 465.9 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007299/0.431, allocations: 423.7 kB / 466.3 MB, free: 24.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/0.431, allocations: 26.06 kB / 466.3 MB, free: 24.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.4311, allocations: 35.5 kB / 466.3 MB, free: 24.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009126/0.4321, allocations: 0.528 MB / 466.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4321, allocations: 0 / 466.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.263e-05/0.4321, allocations: 16.12 kB / 466.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.4322, allocations: 11.62 kB / 466.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.4334, allocations: 0.7991 MB / 467.7 MB, free: 23.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.436, allocations: 1.857 MB / 469.5 MB, free: 22.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004339/0.4364, allocations: 215.6 kB / 469.7 MB, free: 22.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.4367, allocations: 138 kB / 469.9 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002785/0.4395, allocations: 2.647 MB / 472.5 MB, free: 20.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.4395, allocations: 38.5 kB / 472.6 MB, free: 20.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.683e-06/0.4395, allocations: 0 / 472.6 MB, free: 20.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005759/0.4401, allocations: 291.4 kB / 472.8 MB, free: 19.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.626e-05/0.4401, allocations: 51.41 kB / 472.9 MB, free: 19.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004476/0.4406, allocations: 476.7 kB / 473.4 MB, free: 19.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.4406, allocations: 33.7 kB / 473.4 MB, free: 19.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.4408, allocations: 287.4 kB / 473.7 MB, free: 18.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.4408, allocations: 69.86 kB / 473.7 MB, free: 18.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.4409, allocations: 40.33 kB / 473.8 MB, free: 18.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.159e-05/0.441, allocations: 360 kB / 474.1 MB, free: 18.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.4411, allocations: 86.33 kB / 474.2 MB, free: 18.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.4414, allocations: 368.1 kB / 474.6 MB, free: 17.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004524/0.4418, allocations: 0.4934 MB / 475.1 MB, free: 17.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.4418, allocations: 0 / 475.1 MB, free: 17.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007215/0.4426, allocations: 487.5 kB / 475.6 MB, free: 16.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.4426, allocations: 12.06 kB / 475.6 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.4426, allocations: 12 kB / 475.6 MB, free: 16.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.4427, allocations: 12 kB / 475.6 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.443, allocations: 105.9 kB / 475.7 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.443, allocations: 23.34 kB / 475.7 MB, free: 16.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003423/0.4433, allocations: 55.44 kB / 475.8 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.463e-05/0.4434, allocations: 43.31 kB / 475.8 MB, free: 16.69 MB / 350.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.0001748/0.4436, allocations: 172.9 kB / 476 MB, free: 16.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-05/0.4437, allocations: 55.44 kB / 476 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006926/0.4444, allocations: 393.4 kB / 476.4 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.4444, allocations: 0 / 476.4 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4444, allocations: 2.906 kB / 476.4 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4444, allocations: 0 / 476.4 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007232/0.4451, allocations: 0.7222 MB / 477.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4451, allocations: 0 / 477.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.4452, allocations: 18.66 kB / 477.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.4452, allocations: 3.938 kB / 477.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.4452, allocations: 4 kB / 477.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.4452, allocations: 0 / 477.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.4453, allocations: 6.906 kB / 477.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001905/0.4454, allocations: 198.9 kB / 477.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.4456, allocations: 153 kB / 477.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/0.4457, allocations: 4 kB / 477.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.4458, allocations: 12 kB / 477.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/0.4459, allocations: 2.906 kB / 477.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.4459, allocations: 11.88 kB / 477.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004076/0.4463, allocations: 414.6 kB / 478 MB, free: 14.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4463, allocations: 0 / 478 MB, free: 14.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000837/0.4471, allocations: 250.2 kB / 478.2 MB, free: 14.36 MB / 350.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.0008652/0.448, allocations: 387.6 kB / 478.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.4484, allocations: 229.1 kB / 478.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4484, allocations: 0.8125 kB / 478.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.816e-05/0.4485, allocations: 37.58 kB / 478.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.4492, allocations: 108.4 kB / 478.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.4503, allocations: 0.8652 MB / 479.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.4505, allocations: 0.8053 MB / 480.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.4507, allocations: 100.7 kB / 480.7 MB, free: 12 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4507, allocations: 0 / 480.7 MB, free: 12 MB / 350.1 MB Notification: Performance of Templates: time 0.01483/0.4655, allocations: 7.855 MB / 488.6 MB, free: 7.25 MB / 350.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)