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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.08302/0.08302, allocations: 15.29 MB / 31.08 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 197.2 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 264 MB, free: 4.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 87.53 kB / 318.4 MB, free: 3.449 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009975/0.0009977, allocations: 57.48 kB / 382.7 MB, free: 48.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08826/0.08927, allocations: 53.62 MB / 436.3 MB, free: 1.035 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.02556/0.1149, allocations: 20.8 MB / 457.1 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008779/0.1237, allocations: 9.174 MB / 466.3 MB, free: 3.129 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000454/0.1242, allocations: 15.88 kB / 466.3 MB, free: 3.113 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005472/0.1247, allocations: 202.6 kB / 466.5 MB, free: 2.914 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007033/0.1254, allocations: 309.8 kB / 466.8 MB, free: 2.609 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002753/0.1282, allocations: 1.243 MB / 468.1 MB, free: 1.359 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007545/0.129, allocations: 0.6657 MB / 468.7 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.1292, allocations: 209.3 kB / 468.9 MB, free: 492 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.1295, allocations: 299.2 kB / 469.2 MB, free: 192 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003835/0.1299, allocations: 342.7 kB / 469.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.13, allocations: 20 kB / 469.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/0.1317, allocations: 0.811 MB / 470.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1319, allocations: 111.5 kB / 470.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.1321, allocations: 246.7 kB / 470.8 MB, free: 14.67 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001768/0.1339, allocations: 1.39 MB / 472.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1339, allocations: 0 / 472.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1339, allocations: 0 / 472.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1339, allocations: 0 / 472.1 MB, free: 13.27 MB / 346.7 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.001197/0.1351, allocations: 0.9386 MB / 473.1 MB, free: 12.28 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.1352, allocations: 8.875 kB / 473.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006608/0.1358, allocations: 167.9 kB / 473.3 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005741/0.1364, allocations: 429.9 kB / 473.7 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.1364, allocations: 21.03 kB / 473.7 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.336e-05/0.1365, allocations: 36.12 kB / 473.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007031/0.1372, allocations: 0.5299 MB / 474.3 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1372, allocations: 0 / 474.3 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.1373, allocations: 16 kB / 474.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1373, allocations: 8 kB / 474.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.1383, allocations: 0.8024 MB / 475.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.1405, allocations: 1.889 MB / 477 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.1409, allocations: 214.5 kB / 477.2 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1411, allocations: 140.8 kB / 477.3 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002761/0.1439, allocations: 2.717 MB / 480 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.1439, allocations: 34.56 kB / 480.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.1439, allocations: 0 / 480.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005252/0.1445, allocations: 291.1 kB / 480.4 MB, free: 4.461 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.1445, allocations: 55.41 kB / 480.4 MB, free: 4.395 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004328/0.1449, allocations: 478.7 kB / 480.9 MB, free: 3.914 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.145, allocations: 29.7 kB / 480.9 MB, free: 3.879 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.1451, allocations: 291.3 kB / 481.2 MB, free: 3.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.565e-05/0.1452, allocations: 67.09 kB / 481.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.1453, allocations: 98.03 kB / 481.4 MB, free: 3.422 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1454, allocations: 362.7 kB / 481.7 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.1456, allocations: 88.83 kB / 481.8 MB, free: 2.973 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002756/0.1459, allocations: 357.1 kB / 482.1 MB, free: 2.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004793/0.1464, allocations: 0.4886 MB / 482.6 MB, free: 1.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.1464, allocations: 4 kB / 482.6 MB, free: 1.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006728/0.147, allocations: 493.2 kB / 483.1 MB, free: 1.375 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1471, allocations: 8 kB / 483.1 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.1471, allocations: 16.09 kB / 483.1 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.1471, allocations: 15.94 kB / 483.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.1474, allocations: 107.8 kB / 483.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.1474, allocations: 23.92 kB / 483.3 MB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.1477, allocations: 55.38 kB / 483.3 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-05/0.1477, allocations: 39.94 kB / 483.4 MB, free: 1.113 MB / 346.7 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.0001456/0.1479, allocations: 173.6 kB / 483.5 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.106e-05/0.148, allocations: 51.44 kB / 483.6 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006983/0.1487, allocations: 391.1 kB / 484 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1487, allocations: 64 / 484 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.1487, allocations: 8 kB / 484 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1487, allocations: 0 / 484 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006963/0.1494, allocations: 0.721 MB / 484.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1494, allocations: 7.984 kB / 484.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.798e-05/0.1495, allocations: 19.86 kB / 484.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.1495, allocations: 4 kB / 484.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.1495, allocations: 0 / 484.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1495, allocations: 4 kB / 484.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1495, allocations: 0 / 484.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005227/0.1501, allocations: 0.8693 MB / 485.6 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.1502, allocations: 128.4 kB / 485.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.545e-05/0.1502, allocations: 7.984 kB / 485.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1504, allocations: 8 kB / 485.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.467e-05/0.1504, allocations: 15.88 kB / 485.8 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.1504, allocations: 4 kB / 485.8 MB, free: 14.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004031/0.1508, allocations: 414.8 kB / 486.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1508, allocations: 0 / 486.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007287/0.1516, allocations: 247.7 kB / 486.4 MB, free: 13.85 MB / 362.7 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.0006176/0.1522, allocations: 395.3 kB / 486.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003352/0.1525, allocations: 225.2 kB / 487 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1525, allocations: 0.875 kB / 487 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.483e-05/0.1526, allocations: 39.92 kB / 487.1 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.1532, allocations: 110.2 kB / 487.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.1542, allocations: 0.9079 MB / 488.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1545, allocations: 0.8194 MB / 488.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004283/0.155, allocations: 132 kB / 489 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.1551, allocations: 67.41 kB / 489.1 MB, free: 11.08 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1551, allocations: 0 / 489.1 MB, free: 11.08 MB / 362.7 MB Notification: Performance of Templates: time 0.01251/0.1676, allocations: 8.454 MB / 497.5 MB, free: 2.684 MB / 362.7 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)