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/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.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_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.001108/0.001108, 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.001088/0.001088, allocations: 194.4 kB / 16.53 MB, free: 6.699 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.154/1.154, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1606/0.1606, allocations: 15.32 MB / 305.7 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 59.91 kB / 370.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07575/0.07691, allocations: 53.62 MB / 424.1 MB, free: 14.18 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.2404/0.3174, allocations: 23.03 MB / 447.1 MB, free: 40.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00591/0.3233, allocations: 9.169 MB / 456.2 MB, free: 35.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.3235, allocations: 10.5 kB / 456.3 MB, free: 35.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004034/0.3239, allocations: 220.1 kB / 456.5 MB, free: 34.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005268/0.3244, allocations: 346.2 kB / 456.8 MB, free: 34.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.3262, allocations: 1.408 MB / 458.2 MB, free: 34.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004687/0.3266, allocations: 0.6676 MB / 458.9 MB, free: 33.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.3269, allocations: 241.8 kB / 459.1 MB, free: 33.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.3271, allocations: 318.6 kB / 459.4 MB, free: 33.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.3274, allocations: 348.1 kB / 459.8 MB, free: 33.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-05/0.3274, allocations: 34.72 kB / 459.8 MB, free: 33.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.3288, allocations: 0.814 MB / 460.6 MB, free: 33.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.823e-05/0.3289, allocations: 128.5 kB / 460.7 MB, free: 33.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.329, allocations: 258 kB / 461 MB, free: 33.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.3303, allocations: 1.49 MB / 462.5 MB, free: 33.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.3303, allocations: 0 / 462.5 MB, free: 33.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3304, allocations: 0 / 462.5 MB, free: 33.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.3304, allocations: 0 / 462.5 MB, free: 33.09 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008837/0.3313, allocations: 0.9374 MB / 463.4 MB, free: 32.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.823e-05/0.3313, allocations: 16 kB / 463.4 MB, free: 32.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.864e-05/0.3314, allocations: 69.03 kB / 463.5 MB, free: 32.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006195/0.332, allocations: 158.2 kB / 463.7 MB, free: 32.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.3324, allocations: 439.3 kB / 464.1 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.3324, allocations: 20.12 kB / 464.1 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.3325, allocations: 36.06 kB / 464.1 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005555/0.333, allocations: 0.529 MB / 464.7 MB, free: 31.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.3331, allocations: 2.844 kB / 464.7 MB, free: 31.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.3331, allocations: 15.14 kB / 464.7 MB, free: 31.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3331, allocations: 14.06 kB / 464.7 MB, free: 31.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008663/0.334, allocations: 0.8031 MB / 465.5 MB, free: 31.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.3357, allocations: 1.88 MB / 467.4 MB, free: 30.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.3361, allocations: 216.2 kB / 467.6 MB, free: 30.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001894/0.3363, allocations: 135 kB / 467.7 MB, free: 30.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002172/0.3384, allocations: 2.708 MB / 470.4 MB, free: 27.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.3385, allocations: 31.75 kB / 470.5 MB, free: 27.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.242e-06/0.3385, allocations: 4 kB / 470.5 MB, free: 27.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004819/0.339, allocations: 291.2 kB / 470.8 MB, free: 27.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.093e-05/0.339, allocations: 53.34 kB / 470.8 MB, free: 27.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003626/0.3394, allocations: 484.4 kB / 471.3 MB, free: 27.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.3394, allocations: 30.95 kB / 471.3 MB, free: 27.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3395, allocations: 292.2 kB / 471.6 MB, free: 27.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.3395, allocations: 61.84 kB / 471.7 MB, free: 27.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.3396, allocations: 101.2 kB / 471.8 MB, free: 27.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.658e-05/0.3397, allocations: 366.1 kB / 472.1 MB, free: 26.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.3398, allocations: 92.56 kB / 472.2 MB, free: 26.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.34, allocations: 355.9 kB / 472.6 MB, free: 26.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.3404, allocations: 0.4896 MB / 473 MB, free: 25.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3405, allocations: 6.438 kB / 473.1 MB, free: 25.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005958/0.3411, allocations: 488.2 kB / 473.5 MB, free: 25.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3411, allocations: 8.375 kB / 473.5 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.3411, allocations: 9.25 kB / 473.5 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3411, allocations: 13.28 kB / 473.6 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.3414, allocations: 115.5 kB / 473.7 MB, free: 25.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.3414, allocations: 18.95 kB / 473.7 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.3416, allocations: 67.69 kB / 473.8 MB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.3417, allocations: 33.22 kB / 473.8 MB, free: 25.63 MB / 366.1 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.000117/0.3418, allocations: 174.8 kB / 474 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.3419, allocations: 44.47 kB / 474 MB, free: 25.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005936/0.3425, allocations: 394.7 kB / 474.4 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3425, allocations: 2.094 kB / 474.4 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3425, allocations: 7.938 kB / 474.4 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3425, allocations: 3.938 kB / 474.4 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000522/0.343, allocations: 0.7173 MB / 475.1 MB, free: 24.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.343, allocations: 4.938 kB / 475.1 MB, free: 24.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.205e-05/0.3431, allocations: 16.59 kB / 475.1 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3431, allocations: 2.25 kB / 475.1 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.3431, allocations: 2.5 kB / 475.1 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3431, allocations: 1 kB / 475.1 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3431, allocations: 6.469 kB / 475.2 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.3433, allocations: 191.8 kB / 475.3 MB, free: 24.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.564e-05/0.3434, allocations: 134.5 kB / 475.5 MB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.922e-05/0.3435, allocations: 8.125 kB / 475.5 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.3436, allocations: 6.172 kB / 475.5 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.597e-05/0.3436, allocations: 6.688 kB / 475.5 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.3436, allocations: 2.75 kB / 475.5 MB, free: 24.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003279/0.3439, allocations: 420.4 kB / 475.9 MB, free: 24.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3439, allocations: 0 / 475.9 MB, free: 24.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005589/0.3445, allocations: 249.4 kB / 476.1 MB, free: 24.09 MB / 366.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.0006625/0.3452, allocations: 1.03 MB / 477.2 MB, free: 23.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000307/0.3455, allocations: 231.2 kB / 477.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3455, allocations: 0 / 477.4 MB, free: 23.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.222e-05/0.3455, allocations: 37.52 kB / 477.4 MB, free: 23.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.346, allocations: 116.2 kB / 477.6 MB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.3493, allocations: 4.208 MB / 481.8 MB, free: 20.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.3495, allocations: 0.8196 MB / 482.6 MB, free: 19.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003725/0.3499, allocations: 133.2 kB / 482.7 MB, free: 19.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.35, allocations: 171.9 kB / 482.9 MB, free: 19.32 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.35, allocations: 0 / 482.9 MB, free: 19.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.3757, allocations: 12.95 MB / 495.8 MB, free: 17.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.546/6.922, allocations: 13.09 kB / 495.8 MB, free: 17.05 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)