Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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: "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007134/0.007134, allocations: 104.2 kB / 15.73 MB, free: 5.953 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.001292/0.001292, allocations: 190.3 kB / 16.67 MB, free: 5.871 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.8767/0.8767, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 68.12 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1298, allocations: 53.62 MB / 478.3 MB, free: 6.293 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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.1-master/package.mo:4740:7-4740:66: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.SimpleReaction2): time 0.265/0.3949, allocations: 25.2 MB / 0.4917 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01812/0.413, allocations: 11.61 MB / 0.503 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000922/0.414, allocations: 11.94 kB / 0.503 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.4151, allocations: 262 kB / 0.5033 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003415/0.4185, allocations: 0.9773 MB / 0.5042 GB, free: 272 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2616/0.6801, allocations: 1.5 MB / 0.5057 GB, free: 18.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003253/0.6834, allocations: 1.244 MB / 0.5069 GB, free: 18.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001102/0.6845, allocations: 0.7081 MB / 0.5076 GB, free: 18.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008584/0.6854, allocations: 0.6026 MB / 0.5082 GB, free: 18.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009024/0.6863, allocations: 0.6682 MB / 0.5089 GB, free: 18.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001729/0.6865, allocations: 105.4 kB / 0.509 GB, free: 18.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004759/0.6913, allocations: 1.283 MB / 0.5102 GB, free: 18.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002926/0.6916, allocations: 261.7 kB / 0.5105 GB, free: 18.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007376/0.6923, allocations: 0.5497 MB / 0.511 GB, free: 18.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007594/0.6999, allocations: 2.518 MB / 0.5135 GB, free: 18.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.7, allocations: 0 / 0.5135 GB, free: 18.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.7, allocations: 0 / 0.5135 GB, free: 18.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.7, allocations: 1.609 kB / 0.5135 GB, free: 18.12 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003269/0.7033, allocations: 1.528 MB / 0.515 GB, free: 17.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.7033, allocations: 9.094 kB / 0.515 GB, free: 17.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001781/0.7035, allocations: 141.4 kB / 0.5151 GB, free: 17.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009696/0.7045, allocations: 215.6 kB / 0.5153 GB, free: 17.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009092/0.7054, allocations: 0.5743 MB / 0.5159 GB, free: 16.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.7055, allocations: 95.48 kB / 0.516 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.7057, allocations: 96.33 kB / 0.516 GB, free: 16.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.7075, allocations: 1.047 MB / 0.5171 GB, free: 16.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.7075, allocations: 6.125 kB / 0.5171 GB, free: 16.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-05/0.7076, allocations: 36.91 kB / 0.5171 GB, free: 16.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.7076, allocations: 23.16 kB / 0.5171 GB, free: 16.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002164/0.7098, allocations: 1.274 MB / 0.5184 GB, free: 16.03 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005187/0.715, allocations: 3.48 MB / 0.5218 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/0.7172, allocations: 1.523 MB / 0.5233 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005992/0.7178, allocations: 441.8 kB / 0.5237 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004604/0.7224, allocations: 4.044 MB / 0.5276 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.885e-05/0.7225, allocations: 38.41 kB / 0.5277 GB, free: 9.832 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.044e-06/0.7225, allocations: 0 / 0.5277 GB, free: 9.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.002986/0.7255, allocations: 1.673 MB / 0.5293 GB, free: 8.957 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.7255, allocations: 61.28 kB / 0.5294 GB, free: 8.895 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005198/0.726, allocations: 0.5099 MB / 0.5299 GB, free: 8.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.7261, allocations: 36.45 kB / 0.5299 GB, free: 8.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.7263, allocations: 476.9 kB / 0.5303 GB, free: 8.234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.7264, allocations: 236.1 kB / 0.5306 GB, free: 8.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.7267, allocations: 176.3 kB / 0.5307 GB, free: 7.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.7268, allocations: 376.8 kB / 0.5311 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/0.7271, allocations: 210.1 kB / 0.5313 GB, free: 7.566 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/0.7276, allocations: 0.5364 MB / 0.5318 GB, free: 7.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000856/0.7285, allocations: 0.8092 MB / 0.5326 GB, free: 6.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.7285, allocations: 2.75 kB / 0.5326 GB, free: 6.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001123/0.7296, allocations: 0.8564 MB / 0.5335 GB, free: 6.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.7296, allocations: 12.53 kB / 0.5335 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.7297, allocations: 12.12 kB / 0.5335 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.936e-05/0.7297, allocations: 21.06 kB / 0.5335 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008703/0.7306, allocations: 263.8 kB / 0.5337 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/0.7306, allocations: 22.2 kB / 0.5338 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000437/0.7311, allocations: 30.34 kB / 0.5338 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-05/0.7311, allocations: 55.06 kB / 0.5339 GB, free: 6.121 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.0002664/0.7314, allocations: 236.6 kB / 0.5341 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-05/0.7315, allocations: 70.94 kB / 0.5341 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001091/0.7326, allocations: 0.6861 MB / 0.5348 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.7326, allocations: 5.312 kB / 0.5348 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.7326, allocations: 4.484 kB / 0.5348 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.7326, allocations: 2.859 kB / 0.5348 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008279/0.7335, allocations: 0.7705 MB / 0.5356 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.7335, allocations: 3 kB / 0.5356 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006789/0.7342, allocations: 176.5 kB / 0.5357 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.7342, allocations: 5.656 kB / 0.5358 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.945e-05/0.7342, allocations: 24.66 kB / 0.5358 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.7342, allocations: 2.938 kB / 0.5358 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.7342, allocations: 7.328 kB / 0.5358 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.7353, allocations: 0.9505 MB / 0.5367 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/0.7356, allocations: 192.7 kB / 0.5369 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.943e-05/0.7356, allocations: 21.36 kB / 0.5369 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.7359, allocations: 17.78 kB / 0.5369 GB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.736, allocations: 44.97 kB / 0.537 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.7361, allocations: 29.19 kB / 0.537 GB, free: 4.191 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003001/0.7364, allocations: 340.8 kB / 0.5373 GB, free: 3.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7364, allocations: 2.656 kB / 0.5373 GB, free: 3.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001506/0.7379, allocations: 493.5 kB / 0.5378 GB, free: 3.793 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.logn) * 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 (71): * Single equations (assignments): 71 * 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.002144/0.7401, allocations: 1.984 MB / 0.5397 GB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008445/0.7409, allocations: 0.6025 MB / 0.5403 GB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.7409, allocations: 4 kB / 0.5403 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003027/0.7412, allocations: 289.7 kB / 0.5406 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007594/0.742, allocations: 162.9 kB / 0.5408 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007899/0.7499, allocations: 6.13 MB / 0.5468 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/0.7505, allocations: 0.9566 MB / 0.5477 GB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005537/0.7511, allocations: 161.9 kB / 0.5478 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004756/0.7516, allocations: 349.9 kB / 0.5482 GB, free: 8.965 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.7516, allocations: 0 / 0.5482 GB, free: 8.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.264/2.015, allocations: 20.67 MB / 0.5684 GB, free: 5.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/13.79, allocations: 18.31 kB / 0.5684 GB, free: 5.195 MB / 414.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction2_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)