Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.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.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001348/0.001348, allocations: 195.4 kB / 16.14 MB, free: 6.676 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.509/1.509, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2621/0.2621, allocations: 15.32 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 67.89 kB / 369.7 MB, free: 4.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1579, allocations: 53.61 MB / 423.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.007334/0.1653, allocations: 3.459 MB / 426.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.177, allocations: 6.263 MB / 433 MB, free: 5.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006856/0.1778, allocations: 15.88 kB / 433 MB, free: 5.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009451/0.1788, allocations: 135.1 kB / 433.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.1799, allocations: 218.7 kB / 433.3 MB, free: 4.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003184/0.1831, allocations: 0.8428 MB / 434.2 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009612/0.1841, allocations: 498.5 kB / 434.7 MB, free: 3.344 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.1844, allocations: 144.4 kB / 434.8 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.1847, allocations: 211.4 kB / 435 MB, free: 2.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003732/0.1851, allocations: 243.1 kB / 435.3 MB, free: 2.758 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.974e-05/0.1851, allocations: 12 kB / 435.3 MB, free: 2.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.1869, allocations: 0.5419 MB / 435.8 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.1871, allocations: 79.69 kB / 435.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002133/0.1873, allocations: 179.1 kB / 436.1 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.1891, allocations: 0.9458 MB / 437 MB, free: 1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1891, allocations: 0 / 437 MB, free: 1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1891, allocations: 3.938 kB / 437 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1891, allocations: 0 / 437 MB, free: 0.9961 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001179/0.1903, allocations: 0.7419 MB / 437.8 MB, free: 212 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1904, allocations: 12.03 kB / 437.8 MB, free: 200 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005656/0.1909, allocations: 112.1 kB / 437.9 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2261/0.417, allocations: 361.6 kB / 438.2 MB, free: 53.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.4171, allocations: 14.69 kB / 438.2 MB, free: 53.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.419e-05/0.4172, allocations: 20.41 kB / 438.3 MB, free: 53.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.4178, allocations: 386.7 kB / 438.6 MB, free: 53.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.4178, allocations: 0 / 438.6 MB, free: 53.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.4179, allocations: 11.16 kB / 438.7 MB, free: 53.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.4179, allocations: 6.219 kB / 438.7 MB, free: 53.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006838/0.4186, allocations: 0.549 MB / 439.2 MB, free: 53.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.4202, allocations: 1.404 MB / 440.6 MB, free: 52.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003014/0.4205, allocations: 169.3 kB / 440.8 MB, free: 52.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.4206, allocations: 96.06 kB / 440.9 MB, free: 52.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001774/0.4224, allocations: 1.901 MB / 442.8 MB, free: 51.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.4225, allocations: 33.8 kB / 442.8 MB, free: 51.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.4225, allocations: 0 / 442.8 MB, free: 51.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004478/0.4229, allocations: 218.5 kB / 443 MB, free: 51.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.423, allocations: 58.98 kB / 443.1 MB, free: 51.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.4233, allocations: 374.3 kB / 443.4 MB, free: 50.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.4233, allocations: 25.7 kB / 443.5 MB, free: 50.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.4234, allocations: 229.7 kB / 443.7 MB, free: 50.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.345e-05/0.4235, allocations: 53.69 kB / 443.7 MB, free: 50.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.548e-05/0.4236, allocations: 68.77 kB / 443.8 MB, free: 50.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.916e-05/0.4236, allocations: 344.7 kB / 444.2 MB, free: 50.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.4238, allocations: 64 kB / 444.2 MB, free: 50.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.4239, allocations: 247.1 kB / 444.5 MB, free: 50.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.4243, allocations: 346.8 kB / 444.8 MB, free: 50 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4243, allocations: 3.094 kB / 444.8 MB, free: 50 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000455/0.4247, allocations: 350 kB / 445.1 MB, free: 49.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4248, allocations: 5.719 kB / 445.1 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.4248, allocations: 9.953 kB / 445.2 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.4248, allocations: 8.062 kB / 445.2 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.425, allocations: 72.36 kB / 445.2 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.425, allocations: 13.77 kB / 445.2 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.4252, allocations: 47.78 kB / 445.3 MB, free: 49.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.4253, allocations: 21.34 kB / 445.3 MB, free: 49.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (35): * Single equations (assignments): 35 * 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.0001286/0.4254, allocations: 159.3 kB / 445.5 MB, free: 49.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-05/0.4255, allocations: 32.78 kB / 445.5 MB, free: 49.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000489/0.426, allocations: 286.3 kB / 445.8 MB, free: 49.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.426, allocations: 3.141 kB / 445.8 MB, free: 49.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.426, allocations: 0.6875 kB / 445.8 MB, free: 49.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.426, allocations: 0 / 445.8 MB, free: 49.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00051/0.4265, allocations: 0.6321 MB / 446.4 MB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4265, allocations: 0 / 446.4 MB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.559e-05/0.4266, allocations: 19.47 kB / 446.4 MB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.4266, allocations: 3.156 kB / 446.4 MB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.4266, allocations: 4.156 kB / 446.4 MB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.4266, allocations: 2.25 kB / 446.4 MB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4266, allocations: 6.656 kB / 446.5 MB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.4268, allocations: 173.9 kB / 446.6 MB, free: 49.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.178e-05/0.4269, allocations: 118.6 kB / 446.7 MB, free: 49.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.115e-05/0.4269, allocations: 4.719 kB / 446.7 MB, free: 49.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.582e-05/0.427, allocations: 4.312 kB / 446.7 MB, free: 49.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.398e-05/0.4271, allocations: 17.94 kB / 446.8 MB, free: 49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.4271, allocations: 3.719 kB / 446.8 MB, free: 49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002623/0.4274, allocations: 316.1 kB / 447.1 MB, free: 48.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4274, allocations: 1.5 kB / 447.1 MB, free: 48.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005228/0.4279, allocations: 166 kB / 447.2 MB, free: 48.91 MB / 366.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.0005076/0.4284, allocations: 300.1 kB / 447.5 MB, free: 48.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002573/0.4287, allocations: 165.9 kB / 447.7 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4287, allocations: 3.156 kB / 447.7 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.035e-05/0.4287, allocations: 26.44 kB / 447.7 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005309/0.4293, allocations: 98.11 kB / 447.8 MB, free: 48.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007185/0.43, allocations: 0.6315 MB / 448.4 MB, free: 48.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.4302, allocations: 0.7758 MB / 449.2 MB, free: 47.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002857/0.4305, allocations: 94.44 kB / 449.3 MB, free: 47.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.334e-05/0.4306, allocations: 46.83 kB / 449.4 MB, free: 47.67 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4306, allocations: 4 kB / 449.4 MB, free: 47.67 MB / 366.1 MB Notification: Performance of Templates: time 0.009821/0.4404, allocations: 6.013 MB / 455.4 MB, free: 47.24 MB / 366.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)