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.006924/0.006924, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001681/0.001681, allocations: 187.2 kB / 16.67 MB, free: 5.957 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1832/0.1832, allocations: 15.32 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 67.89 kB / 424.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2498, allocations: 53.61 MB / 478.3 MB, free: 25.64 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.03147/0.2813, allocations: 23.02 MB / 0.4896 GB, free: 11.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007747/0.2891, allocations: 9.16 MB / 0.4985 GB, free: 2.508 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005476/0.2897, allocations: 11.88 kB / 0.4985 GB, free: 2.496 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006716/0.2904, allocations: 218.5 kB / 0.4988 GB, free: 2.281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.2914, allocations: 345.2 kB / 0.4991 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003001/0.2944, allocations: 1.417 MB / 0.5005 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009098/0.2954, allocations: 0.6736 MB / 0.5011 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005084/0.2959, allocations: 233.2 kB / 0.5013 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004253/0.2963, allocations: 323.2 kB / 0.5017 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005487/0.2969, allocations: 342.8 kB / 0.502 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.297, allocations: 36 kB / 0.502 GB, free: 14.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002328/0.2994, allocations: 0.8191 MB / 0.5028 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.2996, allocations: 127.5 kB / 0.5029 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003212/0.2999, allocations: 254.7 kB / 0.5032 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00292/0.3028, allocations: 1.499 MB / 0.5046 GB, free: 12.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.3028, allocations: 0 / 0.5046 GB, free: 12.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3028, allocations: 0 / 0.5046 GB, free: 12.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.114e-05/0.3029, allocations: 4 kB / 0.5046 GB, free: 12.21 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001659/0.3045, allocations: 0.9347 MB / 0.5056 GB, free: 11.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.3046, allocations: 8.031 kB / 0.5056 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.3047, allocations: 74.72 kB / 0.5056 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008362/0.3055, allocations: 155.9 kB / 0.5058 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00072/0.3063, allocations: 453.9 kB / 0.5062 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.3063, allocations: 32.91 kB / 0.5063 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.019e-05/0.3064, allocations: 31.94 kB / 0.5063 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008618/0.3073, allocations: 0.5299 MB / 0.5068 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3073, allocations: 0 / 0.5068 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.227e-05/0.3073, allocations: 16 kB / 0.5068 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.3074, allocations: 12 kB / 0.5068 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.3085, allocations: 0.8024 MB / 0.5076 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002508/0.311, allocations: 1.878 MB / 0.5094 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004274/0.3115, allocations: 224.2 kB / 0.5097 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.3117, allocations: 132.8 kB / 0.5098 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003144/0.3148, allocations: 2.71 MB / 0.5124 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.3149, allocations: 38.5 kB / 0.5125 GB, free: 3.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.3149, allocations: 0 / 0.5125 GB, free: 3.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005901/0.3155, allocations: 290.7 kB / 0.5127 GB, free: 3.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.3155, allocations: 51.41 kB / 0.5128 GB, free: 3.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.316, allocations: 486.6 kB / 0.5133 GB, free: 2.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.3161, allocations: 25.7 kB / 0.5133 GB, free: 2.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.3163, allocations: 295.3 kB / 0.5136 GB, free: 2.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.114e-05/0.3163, allocations: 63.17 kB / 0.5136 GB, free: 2.383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.3165, allocations: 105.9 kB / 0.5137 GB, free: 2.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3166, allocations: 358.7 kB / 0.5141 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.3168, allocations: 88.83 kB / 0.5142 GB, free: 1.824 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.3171, allocations: 357.1 kB / 0.5145 GB, free: 1.348 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005857/0.3177, allocations: 0.4925 MB / 0.515 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-06/0.3177, allocations: 4 kB / 0.515 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007642/0.3185, allocations: 481.4 kB / 0.5154 GB, free: 248 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.3185, allocations: 19.97 kB / 0.5155 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.3185, allocations: 8 kB / 0.5155 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.3186, allocations: 12 kB / 0.5155 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.3189, allocations: 111.8 kB / 0.5156 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.3189, allocations: 23.86 kB / 0.5156 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.3192, allocations: 55.38 kB / 0.5157 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.939e-05/0.3193, allocations: 36.11 kB / 0.5157 GB, free: 15.98 MB / 398.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.0001766/0.3195, allocations: 181.5 kB / 0.5159 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.78e-05/0.3195, allocations: 47.44 kB / 0.5159 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000685/0.3202, allocations: 388 kB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.3203, allocations: 0 / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3203, allocations: 0 / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3203, allocations: 3.938 kB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.3211, allocations: 0.7248 MB / 0.517 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3211, allocations: 3.938 kB / 0.517 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.909e-05/0.3212, allocations: 27.98 kB / 0.517 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3212, allocations: 0 / 0.517 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.3212, allocations: 4 kB / 0.517 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.3212, allocations: 3.984 kB / 0.517 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3212, allocations: 4 kB / 0.517 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.3215, allocations: 193 kB / 0.5172 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.3216, allocations: 136.3 kB / 0.5173 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.888e-05/0.3217, allocations: 4 kB / 0.5173 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.3218, allocations: 4 kB / 0.5174 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.3219, allocations: 11.98 kB / 0.5174 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.3219, allocations: 7.938 kB / 0.5174 GB, free: 14.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004607/0.3223, allocations: 414.8 kB / 0.5178 GB, free: 13.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3223, allocations: 0 / 0.5178 GB, free: 13.67 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007198/0.3231, allocations: 247.7 kB / 0.518 GB, free: 13.43 MB / 398.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.001161/0.3242, allocations: 1.025 MB / 0.519 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003928/0.3246, allocations: 229.9 kB / 0.5192 GB, free: 12.13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3247, allocations: 0 / 0.5192 GB, free: 12.13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.095e-05/0.3247, allocations: 35.92 kB / 0.5193 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.3253, allocations: 109.5 kB / 0.5194 GB, free: 11.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.33, allocations: 4.118 MB / 0.5234 GB, free: 7.504 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.3304, allocations: 0.8113 MB / 0.5242 GB, free: 6.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003745/0.3308, allocations: 144 kB / 0.5243 GB, free: 6.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.331, allocations: 167.4 kB / 0.5245 GB, free: 6.359 MB / 398.1 MB Notification: Performance of SimCode: time 1.683e-06/0.331, allocations: 0 / 0.5245 GB, free: 6.359 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.3649, allocations: 13.25 MB / 0.5374 GB, free: 9.176 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.157/8.522, allocations: 14.41 kB / 0.5374 GB, free: 9.164 MB / 414.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)