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.001159/0.001159, allocations: 104.8 kB / 16.35 MB, free: 5.824 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.001155/0.001155, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08875/0.08875, allocations: 15.3 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 64.78 kB / 371.7 MB, free: 50.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 53.62 MB / 425.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.003372/0.1051, allocations: 2.974 MB / 428.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004922/0.11, allocations: 6.277 MB / 434.6 MB, free: 4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002543/0.1103, allocations: 7.938 kB / 434.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004759/0.1108, allocations: 150.9 kB / 434.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00058/0.1115, allocations: 250.1 kB / 435 MB, free: 3.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001896/0.1134, allocations: 0.9431 MB / 436 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005027/0.1139, allocations: 498.6 kB / 436.4 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.1141, allocations: 156.5 kB / 436.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.1143, allocations: 235.3 kB / 436.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.1146, allocations: 243.1 kB / 437.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.1146, allocations: 24 kB / 437.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.1157, allocations: 0.5461 MB / 437.6 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.575e-05/0.1158, allocations: 87.67 kB / 437.7 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.116, allocations: 183.1 kB / 437.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.1172, allocations: 1.012 MB / 438.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1172, allocations: 0 / 438.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.947e-06/0.1172, allocations: 0 / 438.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1172, allocations: 3.938 kB / 438.9 MB, free: 15.68 MB / 318.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.001108/0.1184, allocations: 0.7516 MB / 439.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1184, allocations: 12.03 kB / 439.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000537/0.119, allocations: 112.3 kB / 439.8 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006408/0.1196, allocations: 375.9 kB / 440.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.1197, allocations: 16.81 kB / 440.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.1197, allocations: 20.12 kB / 440.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005772/0.1203, allocations: 385.9 kB / 440.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1203, allocations: 7.922 kB / 440.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.1204, allocations: 8 kB / 440.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.1204, allocations: 4 kB / 440.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007655/0.1211, allocations: 0.5476 MB / 441.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.1229, allocations: 1.399 MB / 442.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.1233, allocations: 174.4 kB / 442.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1234, allocations: 96.83 kB / 442.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002206/0.1256, allocations: 1.892 MB / 444.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.1257, allocations: 46.55 kB / 444.7 MB, free: 9.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.412e-06/0.1257, allocations: 0 / 444.7 MB, free: 9.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004645/0.1262, allocations: 217.2 kB / 444.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.1262, allocations: 51.41 kB / 445 MB, free: 9.121 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.1266, allocations: 377.5 kB / 445.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.1266, allocations: 29.7 kB / 445.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.1268, allocations: 227.4 kB / 445.6 MB, free: 8.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.041e-05/0.1269, allocations: 51.3 kB / 445.7 MB, free: 8.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.127, allocations: 73.45 kB / 445.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1271, allocations: 346.8 kB / 446.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.1273, allocations: 63.95 kB / 446.1 MB, free: 7.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.1275, allocations: 240.8 kB / 446.4 MB, free: 7.621 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.1279, allocations: 352.5 kB / 446.7 MB, free: 7.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.128, allocations: 0 / 446.7 MB, free: 7.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005071/0.1285, allocations: 340.6 kB / 447 MB, free: 6.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.1285, allocations: 8 kB / 447.1 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.1285, allocations: 8.844 kB / 447.1 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.1285, allocations: 8 kB / 447.1 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.1288, allocations: 75.91 kB / 447.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.1288, allocations: 15.92 kB / 447.2 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.129, allocations: 47.47 kB / 447.2 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.732e-05/0.129, allocations: 24 kB / 447.2 MB, free: 6.664 MB / 318.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.0001413/0.1292, allocations: 157.6 kB / 447.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.1292, allocations: 35.61 kB / 447.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005141/0.1298, allocations: 282.8 kB / 447.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.1298, allocations: 4 kB / 447.7 MB, free: 6.156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1298, allocations: 0 / 447.7 MB, free: 6.156 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1298, allocations: 7.875 kB / 447.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/0.1305, allocations: 0.6352 MB / 448.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1305, allocations: 4.062 kB / 448.3 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.775e-05/0.1305, allocations: 8 kB / 448.4 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.1306, allocations: 4 kB / 448.4 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.1306, allocations: 4 kB / 448.4 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1306, allocations: 4 kB / 448.4 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1306, allocations: 0 / 448.4 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.1308, allocations: 181 kB / 448.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.1309, allocations: 116.6 kB / 448.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.027e-05/0.131, allocations: 7.938 kB / 448.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.921e-05/0.1311, allocations: 4 kB / 448.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.889e-05/0.1311, allocations: 8 kB / 448.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.1311, allocations: 4 kB / 448.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003139/0.1314, allocations: 315.1 kB / 449 MB, free: 4.738 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.1315, allocations: 0 / 449 MB, free: 4.738 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005733/0.132, allocations: 171.8 kB / 449.2 MB, free: 4.57 MB / 318.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.0005019/0.1325, allocations: 306.9 kB / 449.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003298/0.1329, allocations: 168.2 kB / 449.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1329, allocations: 0 / 449.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.784e-05/0.1329, allocations: 31.92 kB / 449.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/0.1334, allocations: 96.97 kB / 449.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008986/0.1344, allocations: 0.5385 MB / 450.3 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/0.1348, allocations: 0.7795 MB / 451.1 MB, free: 2.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002921/0.1351, allocations: 90.56 kB / 451.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.534e-05/0.1352, allocations: 39.42 kB / 451.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1352, allocations: 0 / 451.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of Templates: time 0.01147/0.1467, allocations: 6.161 MB / 457.3 MB, free: 12.35 MB / 334.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)