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.008551/0.008552, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001359/0.001359, allocations: 189.6 kB / 16.67 MB, free: 5.969 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3006/0.3006, allocations: 15.31 MB / 305.8 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.89 kB / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3949, allocations: 53.61 MB / 478.8 MB, free: 25.67 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.0045/0.3994, allocations: 2.975 MB / 481.8 MB, free: 23.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007117/0.4066, allocations: 6.274 MB / 488 MB, free: 18.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004216/0.407, allocations: 7.906 kB / 488.1 MB, free: 18.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005767/0.4076, allocations: 154.9 kB / 488.2 MB, free: 18.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000721/0.4085, allocations: 245 kB / 488.4 MB, free: 18.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002726/0.4112, allocations: 0.9468 MB / 489.4 MB, free: 17.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007516/0.412, allocations: 499.2 kB / 489.9 MB, free: 17.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002954/0.4123, allocations: 158.5 kB / 490 MB, free: 17.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/0.4126, allocations: 237.8 kB / 490.3 MB, free: 17.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.4129, allocations: 238.4 kB / 490.5 MB, free: 17.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.02e-05/0.413, allocations: 28.62 kB / 490.5 MB, free: 17.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001636/0.4146, allocations: 0.5411 MB / 491.1 MB, free: 17.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.4148, allocations: 91.27 kB / 491.2 MB, free: 17.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.415, allocations: 188.5 kB / 491.3 MB, free: 16.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001598/0.4166, allocations: 1.008 MB / 492.4 MB, free: 16.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.4166, allocations: 5.062 kB / 492.4 MB, free: 16.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4166, allocations: 0 / 492.4 MB, free: 16.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.4166, allocations: 4 kB / 492.4 MB, free: 16.3 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.001096/0.4177, allocations: 0.7523 MB / 493.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.4178, allocations: 9.906 kB / 493.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000605/0.4184, allocations: 110 kB / 493.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000543/0.4189, allocations: 374.2 kB / 493.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.419, allocations: 17.09 kB / 493.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.419, allocations: 25.91 kB / 493.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000584/0.4196, allocations: 382.5 kB / 494 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4196, allocations: 1.219 kB / 494 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.4197, allocations: 10.41 kB / 494 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.4197, allocations: 13.92 kB / 494 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008251/0.4205, allocations: 0.5414 MB / 494.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.4223, allocations: 1.414 MB / 496 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.4227, allocations: 164.3 kB / 496.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.4229, allocations: 98.31 kB / 496.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002133/0.425, allocations: 1.907 MB / 498.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.425, allocations: 31.69 kB / 498.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.332e-06/0.4251, allocations: 1.094 kB / 498.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0005114/0.4256, allocations: 214.3 kB / 498.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.4256, allocations: 56.81 kB / 498.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/0.426, allocations: 380.1 kB / 498.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.426, allocations: 25.7 kB / 498.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.4262, allocations: 239 kB / 499.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.4262, allocations: 42.58 kB / 499.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.4263, allocations: 68.55 kB / 499.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.976e-05/0.4264, allocations: 347.2 kB / 499.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.4265, allocations: 59.16 kB / 499.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.4268, allocations: 239.5 kB / 499.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.4271, allocations: 346.4 kB / 0.4884 GB, free: 9.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.4272, allocations: 1.781 kB / 0.4884 GB, free: 9.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005152/0.4277, allocations: 341.9 kB / 0.4888 GB, free: 9.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.4277, allocations: 12.38 kB / 0.4888 GB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.4277, allocations: 5.5 kB / 0.4888 GB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.4278, allocations: 13.56 kB / 0.4888 GB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.428, allocations: 79.03 kB / 0.4889 GB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.428, allocations: 16.25 kB / 0.4889 GB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.4282, allocations: 45.22 kB / 0.4889 GB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.4283, allocations: 28.61 kB / 0.489 GB, free: 9.66 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.0001283/0.4284, allocations: 151.6 kB / 0.4891 GB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.098e-05/0.4285, allocations: 32.12 kB / 0.4891 GB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005182/0.429, allocations: 282.7 kB / 0.4894 GB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.429, allocations: 1.375 kB / 0.4894 GB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.429, allocations: 0 / 0.4894 GB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.429, allocations: 5.312 kB / 0.4894 GB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006362/0.4297, allocations: 0.6336 MB / 0.49 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.4297, allocations: 1.031 kB / 0.49 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.096e-05/0.4297, allocations: 18.27 kB / 0.49 GB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4297, allocations: 1.531 kB / 0.49 GB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.4298, allocations: 1.938 kB / 0.49 GB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.4298, allocations: 2.031 kB / 0.49 GB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.4298, allocations: 10 kB / 0.4901 GB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002023/0.43, allocations: 177.2 kB / 0.4902 GB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.841e-05/0.4301, allocations: 116.7 kB / 0.4903 GB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.054e-05/0.4302, allocations: 18.38 kB / 0.4904 GB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-05/0.4303, allocations: 6.484 kB / 0.4904 GB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-05/0.4303, allocations: 2.594 kB / 0.4904 GB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.4303, allocations: 3.812 kB / 0.4904 GB, free: 8.371 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003599/0.4307, allocations: 317.8 kB / 0.4907 GB, free: 8.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4307, allocations: 1.625 kB / 0.4907 GB, free: 8.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007072/0.4314, allocations: 164 kB / 0.4908 GB, free: 8.137 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.0005797/0.432, allocations: 293.5 kB / 0.4911 GB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.4323, allocations: 172 kB / 0.4913 GB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4323, allocations: 1.75 kB / 0.4913 GB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.593e-05/0.4324, allocations: 28.7 kB / 0.4913 GB, free: 7.859 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005392/0.4329, allocations: 103 kB / 0.4914 GB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009177/0.4338, allocations: 0.5426 MB / 0.4919 GB, free: 7.418 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.4341, allocations: 0.7767 MB / 0.4927 GB, free: 6.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000265/0.4344, allocations: 94.48 kB / 0.4928 GB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.509e-05/0.4345, allocations: 48.36 kB / 0.4928 GB, free: 6.613 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4345, allocations: 0 / 0.4928 GB, free: 6.613 MB / 366.1 MB Notification: Performance of Templates: time 0.01009/0.4446, allocations: 6.278 MB / 0.499 GB, free: 1.543 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)