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.000929/0.000929, 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.0008822/0.0008822, allocations: 195.5 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.137/1.137, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1557/0.1557, allocations: 15.32 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 59.91 kB / 370.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0773/0.07838, allocations: 53.61 MB / 424.1 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.SimpleReaction2): time 0.256/0.3344, allocations: 24.63 MB / 448.7 MB, free: 39.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007896/0.3423, allocations: 11.61 MB / 460.3 MB, free: 34.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002647/0.3426, allocations: 12.84 kB / 460.3 MB, free: 34.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004436/0.343, allocations: 265.6 kB / 460.6 MB, free: 33.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.3443, allocations: 0.9796 MB / 461.5 MB, free: 33.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.3463, allocations: 1.503 MB / 463 MB, free: 32.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006907/0.347, allocations: 1.24 MB / 464.3 MB, free: 32.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004952/0.3475, allocations: 0.699 MB / 465 MB, free: 32.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003404/0.3478, allocations: 0.6044 MB / 465.6 MB, free: 32.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005611/0.3484, allocations: 0.6682 MB / 466.3 MB, free: 31.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.3485, allocations: 106.8 kB / 466.4 MB, free: 31.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002148/0.3507, allocations: 1.283 MB / 467.6 MB, free: 31.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.3509, allocations: 264.3 kB / 467.9 MB, free: 31.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003572/0.3512, allocations: 0.5412 MB / 468.4 MB, free: 30.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002235/0.3535, allocations: 2.494 MB / 470.9 MB, free: 29.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3535, allocations: 0 / 470.9 MB, free: 29.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3535, allocations: 0 / 470.9 MB, free: 29.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3535, allocations: 3.938 kB / 470.9 MB, free: 29.88 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001863/0.3554, allocations: 1.497 MB / 472.4 MB, free: 28.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3554, allocations: 9.406 kB / 472.4 MB, free: 28.92 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.3555, allocations: 138.5 kB / 472.6 MB, free: 28.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007417/0.3563, allocations: 214.4 kB / 472.8 MB, free: 28.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005767/0.3569, allocations: 0.5527 MB / 473.3 MB, free: 28.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-05/0.3569, allocations: 97.62 kB / 473.4 MB, free: 28.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.3571, allocations: 94.44 kB / 473.5 MB, free: 28.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.3583, allocations: 1.048 MB / 474.6 MB, free: 27.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.3583, allocations: 0 / 474.6 MB, free: 27.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.497e-05/0.3584, allocations: 36.25 kB / 474.6 MB, free: 27.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.3584, allocations: 20.62 kB / 474.6 MB, free: 27.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.36, allocations: 1.28 MB / 475.9 MB, free: 27.45 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.0037/0.3637, allocations: 3.483 MB / 479.4 MB, free: 25.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.3655, allocations: 1.529 MB / 480.9 MB, free: 24.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004923/0.366, allocations: 440.2 kB / 481.4 MB, free: 24.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003576/0.3696, allocations: 4.046 MB / 485.4 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.345e-05/0.3696, allocations: 38.8 kB / 485.4 MB, free: 21.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.402e-06/0.3696, allocations: 0 / 485.4 MB, free: 21.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.002554/0.3722, allocations: 1.664 MB / 487.1 MB, free: 20.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.3722, allocations: 62.66 kB / 487.2 MB, free: 20.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004698/0.3727, allocations: 0.5118 MB / 487.7 MB, free: 19.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.3727, allocations: 35.92 kB / 487.7 MB, free: 19.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.3729, allocations: 464.8 kB / 488.2 MB, free: 19.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.373, allocations: 217.8 kB / 488.4 MB, free: 19.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.3732, allocations: 180.1 kB / 488.6 MB, free: 19.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.3733, allocations: 375.8 kB / 488.9 MB, free: 18.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000319/0.3736, allocations: 210.5 kB / 489.1 MB, free: 18.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004098/0.3741, allocations: 0.5348 MB / 489.7 MB, free: 18.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000739/0.3748, allocations: 0.8096 MB / 490.5 MB, free: 17.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.3748, allocations: 4.125 kB / 490.5 MB, free: 17.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001073/0.3759, allocations: 0.8488 MB / 491.3 MB, free: 17.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/0.3759, allocations: 9.219 kB / 491.3 MB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.3759, allocations: 22.97 kB / 491.4 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.376, allocations: 16.25 kB / 491.4 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008231/0.3768, allocations: 262.5 kB / 491.6 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/0.3768, allocations: 26 kB / 491.7 MB, free: 17.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.3772, allocations: 32.02 kB / 491.7 MB, free: 17.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.97e-05/0.3772, allocations: 49.67 kB / 491.7 MB, free: 17.25 MB / 366.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.0001974/0.3774, allocations: 240.2 kB / 492 MB, free: 17.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.3775, allocations: 66.91 kB / 492 MB, free: 17.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001088/0.3786, allocations: 0.6854 MB / 492.7 MB, free: 16.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3786, allocations: 7.125 kB / 492.7 MB, free: 16.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.3787, allocations: 1.594 kB / 492.7 MB, free: 16.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3787, allocations: 3.047 kB / 492.7 MB, free: 16.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006943/0.3794, allocations: 0.7783 MB / 493.5 MB, free: 16.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3794, allocations: 3.938 kB / 493.5 MB, free: 16.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006209/0.38, allocations: 171.1 kB / 493.7 MB, free: 16.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.38, allocations: 3.719 kB / 493.7 MB, free: 16.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/0.3801, allocations: 33.19 kB / 493.7 MB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3801, allocations: 7.5 kB / 493.7 MB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3801, allocations: 3.938 kB / 493.7 MB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009662/0.381, allocations: 0.9468 MB / 494.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.3812, allocations: 190.4 kB / 494.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.66e-05/0.3813, allocations: 16.44 kB / 494.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.3815, allocations: 20.06 kB / 494.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.621e-05/0.3816, allocations: 50.36 kB / 494.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.198e-05/0.3817, allocations: 28.41 kB / 495 MB, free: 15.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.3819, allocations: 340.9 kB / 495.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3819, allocations: 0 / 495.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009361/0.3829, allocations: 473.2 kB / 495.8 MB, free: 15.25 MB / 366.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.001691/0.3846, allocations: 1.976 MB / 497.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008988/0.3855, allocations: 0.644 MB / 498.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3855, allocations: 0 / 498.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.3858, allocations: 290.9 kB / 498.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006722/0.3865, allocations: 160 kB / 498.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004967/0.3914, allocations: 6.284 MB / 0.4933 GB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.3917, allocations: 0.9589 MB / 0.4942 GB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005108/0.3922, allocations: 176 kB / 0.4944 GB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003121/0.3925, allocations: 347.9 kB / 0.4947 GB, free: 8.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3925, allocations: 0 / 0.4947 GB, free: 8.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.4253, allocations: 20.43 MB / 0.5147 GB, free: 7.527 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.992/7.417, allocations: 6.188 kB / 0.5147 GB, free: 7.523 MB / 382.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)