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.001281/0.001281, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001288/0.001288, allocations: 191.2 kB / 16.25 MB, free: 6.629 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.29/1.29, allocations: 222.9 MB / 239.9 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2055/0.2055, allocations: 15.31 MB / 305.4 MB, free: 15.35 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 369.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09535, allocations: 53.61 MB / 423.6 MB, free: 14.54 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.3167/0.4121, allocations: 23.29 MB / 446.8 MB, free: 39.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007225/0.4193, allocations: 9.072 MB / 455.9 MB, free: 34.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004529/0.4198, allocations: 19.25 kB / 455.9 MB, free: 34.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005667/0.4204, allocations: 206.2 kB / 456.1 MB, free: 34.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007039/0.4211, allocations: 311.7 kB / 456.4 MB, free: 34.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002791/0.4239, allocations: 1.267 MB / 457.7 MB, free: 34.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006539/0.4246, allocations: 0.6783 MB / 458.4 MB, free: 33.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.4249, allocations: 233.9 kB / 458.6 MB, free: 33.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/0.4251, allocations: 321.1 kB / 458.9 MB, free: 33.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003285/0.4254, allocations: 356.9 kB / 459.3 MB, free: 33.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/0.4255, allocations: 36.91 kB / 459.3 MB, free: 33.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.4272, allocations: 0.8392 MB / 460.2 MB, free: 33.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.4273, allocations: 127.7 kB / 460.3 MB, free: 33.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.4274, allocations: 267.7 kB / 460.5 MB, free: 33.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.4289, allocations: 1.42 MB / 462 MB, free: 33.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.4289, allocations: 0 / 462 MB, free: 33.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4289, allocations: 0 / 462 MB, free: 33.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.4289, allocations: 3.094 kB / 462 MB, free: 33.11 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.001024/0.43, allocations: 0.9327 MB / 462.9 MB, free: 32.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.43, allocations: 13.12 kB / 462.9 MB, free: 32.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.522e-05/0.4301, allocations: 71.56 kB / 463 MB, free: 32.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000659/0.4308, allocations: 159.3 kB / 463.1 MB, free: 32.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.4312, allocations: 433.9 kB / 463.6 MB, free: 32.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.4312, allocations: 24.38 kB / 463.6 MB, free: 32.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.852e-05/0.4313, allocations: 35.31 kB / 463.6 MB, free: 32.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006513/0.4319, allocations: 0.5251 MB / 464.1 MB, free: 31.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.432, allocations: 1.156 kB / 464.1 MB, free: 31.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.432, allocations: 15.41 kB / 464.2 MB, free: 31.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.432, allocations: 8.375 kB / 464.2 MB, free: 31.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009607/0.433, allocations: 0.8048 MB / 465 MB, free: 31.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.435, allocations: 1.887 MB / 466.9 MB, free: 30.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003849/0.4354, allocations: 209.5 kB / 467.1 MB, free: 30.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.4356, allocations: 134.8 kB / 467.2 MB, free: 30.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002533/0.4381, allocations: 2.724 MB / 469.9 MB, free: 28.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.319e-05/0.4381, allocations: 31.75 kB / 469.9 MB, free: 27.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.803e-06/0.4382, allocations: 0 / 469.9 MB, free: 27.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005354/0.4387, allocations: 294.9 kB / 470.2 MB, free: 27.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.364e-05/0.4387, allocations: 54.19 kB / 470.3 MB, free: 27.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004255/0.4392, allocations: 478.8 kB / 470.8 MB, free: 27.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.4392, allocations: 29.7 kB / 470.8 MB, free: 27.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.4393, allocations: 294.5 kB / 471.1 MB, free: 27.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.981e-05/0.4394, allocations: 62.59 kB / 471.1 MB, free: 27.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.4395, allocations: 100.4 kB / 471.2 MB, free: 27.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.291e-05/0.4396, allocations: 362.6 kB / 471.6 MB, free: 26.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.4397, allocations: 88.73 kB / 471.7 MB, free: 26.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.44, allocations: 359.9 kB / 472 MB, free: 26.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.4404, allocations: 0.4899 MB / 472.5 MB, free: 25.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.4404, allocations: 3.406 kB / 472.5 MB, free: 25.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006512/0.441, allocations: 495.5 kB / 473 MB, free: 25.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.4411, allocations: 11.19 kB / 473 MB, free: 25.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.4411, allocations: 13 kB / 473 MB, free: 25.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.4411, allocations: 13.09 kB / 473 MB, free: 25.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.4414, allocations: 114.8 kB / 473.1 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/0.4414, allocations: 16.22 kB / 473.2 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002545/0.4417, allocations: 62.36 kB / 473.2 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.796e-05/0.4418, allocations: 33.94 kB / 473.3 MB, free: 25.68 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.0001556/0.4419, allocations: 178.3 kB / 473.4 MB, free: 25.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-05/0.442, allocations: 49.09 kB / 473.5 MB, free: 25.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006548/0.4427, allocations: 388 kB / 473.9 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.4427, allocations: 4.359 kB / 473.9 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4427, allocations: 1.094 kB / 473.9 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.4427, allocations: 3.938 kB / 473.9 MB, free: 25.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000638/0.4433, allocations: 0.7128 MB / 474.6 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4434, allocations: 8.391 kB / 474.6 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.685e-05/0.4434, allocations: 14.28 kB / 474.6 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4434, allocations: 2.312 kB / 474.6 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.4435, allocations: 2.344 kB / 474.6 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.4435, allocations: 1.062 kB / 474.6 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4435, allocations: 7.094 kB / 474.6 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.4437, allocations: 199.5 kB / 474.8 MB, free: 24.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.64e-05/0.4438, allocations: 135.9 kB / 474.9 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/0.4438, allocations: 14.44 kB / 475 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.444, allocations: 2.656 kB / 475 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.444, allocations: 2.531 kB / 475 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.444, allocations: 2.938 kB / 475 MB, free: 24.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003695/0.4444, allocations: 418.5 kB / 475.4 MB, free: 24.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4444, allocations: 0 / 475.4 MB, free: 24.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000698/0.4451, allocations: 247.8 kB / 475.6 MB, free: 24.14 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.0008136/0.4459, allocations: 1.028 MB / 476.6 MB, free: 23.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003501/0.4463, allocations: 226 kB / 476.9 MB, free: 23.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.4463, allocations: 0 / 476.9 MB, free: 23.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.89e-05/0.4463, allocations: 45.17 kB / 476.9 MB, free: 23.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.4469, allocations: 111.9 kB / 477 MB, free: 23.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003987/0.4509, allocations: 4.339 MB / 481.4 MB, free: 20.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.4511, allocations: 0.8166 MB / 482.2 MB, free: 19.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004259/0.4516, allocations: 132.7 kB / 482.3 MB, free: 19.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.4518, allocations: 175.4 kB / 482.5 MB, free: 19.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4518, allocations: 0 / 482.5 MB, free: 19.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.4772, allocations: 12.92 MB / 495.4 MB, free: 17.45 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001481/0.4774, allocations: 194.8 kB / 495.6 MB, free: 17.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.44, allocations: 3.938 kB / 495.6 MB, free: 17.19 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)