Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.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: "" <> buildModelFMU(Chemical.Examples.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",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.001118/0.001118, allocations: 108 kB / 15.61 MB, free: 152 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.001081/0.001081, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.165/1.165, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4131/0.4131, allocations: 15.31 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 63.89 kB / 370.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07877/0.07991, allocations: 53.61 MB / 424 MB, free: 14.23 MB / 366.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.SimpleReaction): time 0.2606/0.3405, allocations: 23.82 MB / 447.9 MB, free: 40.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005659/0.3462, allocations: 7.979 MB / 455.8 MB, free: 36.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.3465, allocations: 10.28 kB / 455.8 MB, free: 36.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.3468, allocations: 180.3 kB / 456 MB, free: 36.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009508/0.3478, allocations: 0.688 MB / 456.7 MB, free: 35.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.3492, allocations: 1.028 MB / 457.7 MB, free: 35.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.3497, allocations: 0.9268 MB / 458.7 MB, free: 35.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003929/0.3501, allocations: 0.5094 MB / 459.2 MB, free: 35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/0.3504, allocations: 456 kB / 459.6 MB, free: 34.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003987/0.3508, allocations: 0.4887 MB / 460.1 MB, free: 34.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.286e-05/0.3509, allocations: 81.72 kB / 460.2 MB, free: 34.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001349/0.3523, allocations: 0.864 MB / 461.1 MB, free: 34.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.3524, allocations: 190.9 kB / 461.2 MB, free: 34.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.3526, allocations: 425 kB / 461.7 MB, free: 34.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001466/0.3541, allocations: 1.743 MB / 463.4 MB, free: 33.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.3541, allocations: 0 / 463.4 MB, free: 33.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.3541, allocations: 4 kB / 463.4 MB, free: 33.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.3542, allocations: 1.125 kB / 463.4 MB, free: 33.87 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.00136/0.3555, allocations: 1.163 MB / 464.6 MB, free: 33.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.3556, allocations: 9.625 kB / 464.6 MB, free: 33.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.555e-05/0.3557, allocations: 113.2 kB / 464.7 MB, free: 33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005326/0.3562, allocations: 151.5 kB / 464.8 MB, free: 32.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004615/0.3567, allocations: 464.3 kB / 465.3 MB, free: 32.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.828e-05/0.3567, allocations: 84.25 kB / 465.4 MB, free: 32.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.208e-05/0.3568, allocations: 72.88 kB / 465.4 MB, free: 32.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009663/0.3578, allocations: 0.7701 MB / 466.2 MB, free: 32.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3578, allocations: 5.156 kB / 466.2 MB, free: 32.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.097e-05/0.3579, allocations: 25.16 kB / 466.2 MB, free: 32.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.3579, allocations: 17.16 kB / 466.3 MB, free: 32.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.3591, allocations: 0.8824 MB / 467.1 MB, free: 31.92 MB / 366.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.002915/0.362, allocations: 2.585 MB / 469.7 MB, free: 30.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.3632, allocations: 1.013 MB / 470.7 MB, free: 29.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003737/0.3636, allocations: 308.7 kB / 471 MB, free: 29.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002594/0.3662, allocations: 2.835 MB / 473.9 MB, free: 27.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.275e-05/0.3663, allocations: 37.22 kB / 473.9 MB, free: 27.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.603e-06/0.3663, allocations: 0 / 473.9 MB, free: 27.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.001879/0.3681, allocations: 1.226 MB / 475.1 MB, free: 26.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/0.3682, allocations: 55.53 kB / 475.2 MB, free: 26.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003063/0.3685, allocations: 415.9 kB / 475.6 MB, free: 26.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3685, allocations: 35.08 kB / 475.6 MB, free: 26.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.3686, allocations: 374.8 kB / 476 MB, free: 26.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/0.3687, allocations: 161.1 kB / 476.2 MB, free: 25.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.3688, allocations: 127.8 kB / 476.3 MB, free: 25.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.848e-05/0.3689, allocations: 357.9 kB / 476.6 MB, free: 25.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/0.3691, allocations: 148.9 kB / 476.8 MB, free: 25.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002916/0.3694, allocations: 393.1 kB / 477.2 MB, free: 25.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005613/0.37, allocations: 0.5783 MB / 477.7 MB, free: 24.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.37, allocations: 2.438 kB / 477.7 MB, free: 24.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00078/0.3708, allocations: 0.6152 MB / 478.4 MB, free: 24.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.3708, allocations: 12.84 kB / 478.4 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.3708, allocations: 11.77 kB / 478.4 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3709, allocations: 11.34 kB / 478.4 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.3715, allocations: 207.7 kB / 478.6 MB, free: 24.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.3715, allocations: 18.58 kB / 478.6 MB, free: 24.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.3718, allocations: 22.19 kB / 478.6 MB, free: 24.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/0.3718, allocations: 37.28 kB / 478.7 MB, free: 24.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (83): * Single equations (assignments): 83 * 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.0001606/0.372, allocations: 201 kB / 478.9 MB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.995e-05/0.3721, allocations: 54.81 kB / 478.9 MB, free: 24.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007433/0.3728, allocations: 0.4899 MB / 479.4 MB, free: 23.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3728, allocations: 9.641 kB / 479.4 MB, free: 23.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3728, allocations: 4 kB / 479.4 MB, free: 23.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3729, allocations: 8.25 kB / 479.4 MB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005925/0.3735, allocations: 0.6302 MB / 480.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3735, allocations: 1.281 kB / 480.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005126/0.374, allocations: 144.5 kB / 480.2 MB, free: 23.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.374, allocations: 7.219 kB / 480.2 MB, free: 23.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.374, allocations: 18.91 kB / 480.2 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.374, allocations: 2.875 kB / 480.2 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.374, allocations: 1.062 kB / 480.2 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008138/0.3749, allocations: 0.7212 MB / 481 MB, free: 23.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.375, allocations: 154.9 kB / 481.1 MB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.111e-05/0.3751, allocations: 15.78 kB / 481.1 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.3753, allocations: 15.3 kB / 481.1 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-05/0.3753, allocations: 39.91 kB / 481.2 MB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.3754, allocations: 13.66 kB / 481.2 MB, free: 22.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00022/0.3756, allocations: 281.7 kB / 481.5 MB, free: 22.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3756, allocations: 1.062 kB / 481.5 MB, free: 22.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007236/0.3763, allocations: 329.7 kB / 481.8 MB, free: 22.65 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (solution.temperature,A.logn,B.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 (53): * Single equations (assignments): 53 * 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.001394/0.3777, allocations: 1.589 MB / 483.4 MB, free: 21.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007035/0.3784, allocations: 467.2 kB / 483.8 MB, free: 21.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3784, allocations: 0 / 483.8 MB, free: 21.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.3787, allocations: 206.8 kB / 484 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.3793, allocations: 128.4 kB / 484.2 MB, free: 21.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004431/0.3837, allocations: 4.885 MB / 489 MB, free: 18.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.384, allocations: 0.8855 MB / 489.9 MB, free: 17.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004038/0.3844, allocations: 121.3 kB / 490 MB, free: 17.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002527/0.3847, allocations: 256 kB / 490.3 MB, free: 17.11 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3847, allocations: 0 / 490.3 MB, free: 17.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5613/0.946, allocations: 15.06 MB / 0.4935 GB, free: 12.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.226/8.172, allocations: 15.8 kB / 0.4935 GB, free: 12.79 MB / 366.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction.fmu > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)