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.001337/0.001337, allocations: 100.1 kB / 15.88 MB, free: 12 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.001374/0.001374, allocations: 195.2 kB / 16.79 MB, free: 6.809 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2556/0.2556, allocations: 15.32 MB / 305.9 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 59.91 kB / 370.3 MB, free: 4.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1082, allocations: 53.62 MB / 423.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004357/0.1126, allocations: 3.461 MB / 427.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006473/0.1191, allocations: 6.263 MB / 433.6 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003701/0.1195, allocations: 19.88 kB / 433.7 MB, free: 4.988 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005013/0.12, allocations: 131.1 kB / 433.8 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005805/0.1207, allocations: 226.7 kB / 434 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.1227, allocations: 0.8389 MB / 434.8 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006003/0.1234, allocations: 498.5 kB / 435.3 MB, free: 3.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.1236, allocations: 136.5 kB / 435.5 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002118/0.1238, allocations: 219.4 kB / 435.7 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003118/0.1241, allocations: 243.1 kB / 435.9 MB, free: 2.719 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.268e-05/0.1242, allocations: 16 kB / 435.9 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.1255, allocations: 0.5458 MB / 436.5 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.1256, allocations: 67.75 kB / 436.5 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.1258, allocations: 179.1 kB / 436.7 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008041/0.1266, allocations: 0.724 MB / 437.4 MB, free: 1.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1266, allocations: 8 kB / 437.4 MB, free: 1.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1266, allocations: 0 / 437.4 MB, free: 1.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.1266, allocations: 3.938 kB / 437.5 MB, free: 1.176 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.001019/0.1277, allocations: 0.7556 MB / 438.2 MB, free: 380 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1277, allocations: 8.031 kB / 438.2 MB, free: 372 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005153/0.1282, allocations: 108.2 kB / 438.3 MB, free: 264 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1996/0.3279, allocations: 357 kB / 438.7 MB, free: 53.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.3279, allocations: 15.53 kB / 438.7 MB, free: 53.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.328, allocations: 28.34 kB / 438.7 MB, free: 53.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005582/0.3286, allocations: 381.3 kB / 439.1 MB, free: 53.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3286, allocations: 1.375 kB / 439.1 MB, free: 53.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/0.3286, allocations: 10.38 kB / 439.1 MB, free: 53.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.3286, allocations: 7.188 kB / 439.1 MB, free: 53.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006983/0.3293, allocations: 0.5456 MB / 439.6 MB, free: 53.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.3309, allocations: 1.407 MB / 441.1 MB, free: 52.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.3312, allocations: 163.4 kB / 441.2 MB, free: 52.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.3314, allocations: 97.47 kB / 441.3 MB, free: 52.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001838/0.3332, allocations: 1.908 MB / 443.2 MB, free: 51.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.3332, allocations: 36.83 kB / 443.3 MB, free: 51.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 3.166e-06/0.3332, allocations: 0.75 kB / 443.3 MB, free: 51.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.000451/0.3337, allocations: 222.6 kB / 443.5 MB, free: 51.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.3337, allocations: 54.34 kB / 443.5 MB, free: 51.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.3341, allocations: 364.8 kB / 443.9 MB, free: 50.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.3341, allocations: 29.52 kB / 443.9 MB, free: 50.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.3342, allocations: 232.5 kB / 444.1 MB, free: 50.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.3342, allocations: 50.3 kB / 444.2 MB, free: 50.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.45e-05/0.3343, allocations: 71.14 kB / 444.3 MB, free: 50.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.221e-05/0.3344, allocations: 345.1 kB / 444.6 MB, free: 50.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.3345, allocations: 66.02 kB / 444.7 MB, free: 50.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.3347, allocations: 237.5 kB / 444.9 MB, free: 50.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.335, allocations: 346.6 kB / 445.2 MB, free: 49.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.335, allocations: 2.906 kB / 445.2 MB, free: 49.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004605/0.3355, allocations: 349.8 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.3355, allocations: 11.38 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3355, allocations: 5.656 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3355, allocations: 13.34 kB / 445.6 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.3358, allocations: 76.89 kB / 445.7 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.3358, allocations: 13.64 kB / 445.7 MB, free: 49.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.336, allocations: 37.72 kB / 445.7 MB, free: 49.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/0.336, allocations: 24.08 kB / 445.8 MB, free: 49.9 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.000125/0.3361, allocations: 163.1 kB / 445.9 MB, free: 49.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.453e-05/0.3362, allocations: 36.28 kB / 445.9 MB, free: 49.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005006/0.3367, allocations: 285 kB / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3367, allocations: 1.719 kB / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3367, allocations: 0 / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3367, allocations: 0 / 446.2 MB, free: 49.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005351/0.3373, allocations: 0.629 MB / 446.9 MB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3373, allocations: 0 / 446.9 MB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.725e-05/0.3374, allocations: 16.25 kB / 446.9 MB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3374, allocations: 3.25 kB / 446.9 MB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.3374, allocations: 5.5 kB / 446.9 MB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3374, allocations: 3.375 kB / 446.9 MB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3374, allocations: 6.969 kB / 446.9 MB, free: 49.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.3376, allocations: 173.8 kB / 447.1 MB, free: 49.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.89e-05/0.3377, allocations: 120.8 kB / 447.2 MB, free: 48.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/0.3377, allocations: 5.234 kB / 447.2 MB, free: 48.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.866e-05/0.3378, allocations: 5.625 kB / 447.2 MB, free: 48.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.3379, allocations: 13.25 kB / 447.2 MB, free: 48.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.3379, allocations: 4.688 kB / 447.2 MB, free: 48.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00028/0.3382, allocations: 313 kB / 447.5 MB, free: 48.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3382, allocations: 4 kB / 447.5 MB, free: 48.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005386/0.3387, allocations: 167.2 kB / 447.7 MB, free: 48.88 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.0005305/0.3393, allocations: 296 kB / 448 MB, free: 48.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002641/0.3395, allocations: 160.3 kB / 448.1 MB, free: 48.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3395, allocations: 2.094 kB / 448.1 MB, free: 48.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.029e-05/0.3396, allocations: 37.08 kB / 448.2 MB, free: 48.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005386/0.3401, allocations: 96.27 kB / 448.3 MB, free: 48.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008755/0.341, allocations: 0.6575 MB / 448.9 MB, free: 48.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.3413, allocations: 0.7681 MB / 449.7 MB, free: 47.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.3414, allocations: 70.17 kB / 449.7 MB, free: 47.63 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3414, allocations: 2.969 kB / 449.8 MB, free: 47.63 MB / 366.1 MB Notification: Performance of Templates: time 0.007292/0.3487, allocations: 5.78 MB / 455.5 MB, free: 47.05 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)