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.007585/0.007585, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001802/0.001802, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08431/0.08431, allocations: 15.31 MB / 305.8 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 64.11 kB / 424.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1108, allocations: 53.61 MB / 478.3 MB, free: 6.301 MB / 350.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.03426/0.1451, allocations: 23.06 MB / 0.4896 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0106/0.1558, allocations: 9.164 MB / 0.4985 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000442/0.1562, allocations: 11.88 kB / 0.4986 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007269/0.157, allocations: 210.5 kB / 0.4988 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.1581, allocations: 361.2 kB / 0.4991 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003575/0.1617, allocations: 1.428 MB / 0.5005 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009812/0.1627, allocations: 0.6736 MB / 0.5012 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003959/0.1631, allocations: 237.2 kB / 0.5014 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.1635, allocations: 323.2 kB / 0.5017 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005252/0.164, allocations: 342.8 kB / 0.502 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.1641, allocations: 40 kB / 0.502 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002166/0.1663, allocations: 0.819 MB / 0.5028 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.1665, allocations: 123.5 kB / 0.503 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003017/0.1668, allocations: 258.7 kB / 0.5032 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2367/0.4035, allocations: 1.494 MB / 0.5047 GB, free: 22.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.4035, allocations: 0.7188 kB / 0.5047 GB, free: 22.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4036, allocations: 0 / 0.5047 GB, free: 22.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.175e-05/0.4036, allocations: 0 / 0.5047 GB, free: 22.25 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.001736/0.4053, allocations: 0.9411 MB / 0.5056 GB, free: 21.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4054, allocations: 9.594 kB / 0.5056 GB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.67e-05/0.4055, allocations: 64.73 kB / 0.5057 GB, free: 21.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008343/0.4063, allocations: 155.5 kB / 0.5058 GB, free: 21.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.407, allocations: 457.2 kB / 0.5062 GB, free: 21.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.4071, allocations: 20.78 kB / 0.5063 GB, free: 21.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-05/0.4072, allocations: 29.25 kB / 0.5063 GB, free: 21.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008908/0.4081, allocations: 0.5338 MB / 0.5068 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.4081, allocations: 7.781 kB / 0.5068 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.4081, allocations: 12.72 kB / 0.5068 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.4082, allocations: 7.938 kB / 0.5068 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.4095, allocations: 0.8031 MB / 0.5076 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.4119, allocations: 1.881 MB / 0.5095 GB, free: 20.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004247/0.4123, allocations: 213.8 kB / 0.5097 GB, free: 20.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.4126, allocations: 137.5 kB / 0.5098 GB, free: 20.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003011/0.4156, allocations: 2.709 MB / 0.5124 GB, free: 18.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.4156, allocations: 39.03 kB / 0.5125 GB, free: 18.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.613e-06/0.4156, allocations: 0 / 0.5125 GB, free: 18.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005921/0.4162, allocations: 289.3 kB / 0.5128 GB, free: 18.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.4163, allocations: 60.09 kB / 0.5128 GB, free: 18.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004653/0.4167, allocations: 476.7 kB / 0.5133 GB, free: 17.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.4168, allocations: 28.83 kB / 0.5133 GB, free: 17.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.4169, allocations: 290 kB / 0.5136 GB, free: 17.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.417, allocations: 65.19 kB / 0.5136 GB, free: 17.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.4171, allocations: 97.47 kB / 0.5137 GB, free: 17.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.4172, allocations: 362.9 kB / 0.5141 GB, free: 17.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.4174, allocations: 92.44 kB / 0.5142 GB, free: 17.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.4177, allocations: 359.4 kB / 0.5145 GB, free: 17.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005301/0.4183, allocations: 498.9 kB / 0.515 GB, free: 16.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.4183, allocations: 4.094 kB / 0.515 GB, free: 16.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007413/0.419, allocations: 490.4 kB / 0.5155 GB, free: 16.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.4191, allocations: 12.41 kB / 0.5155 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.4191, allocations: 12.84 kB / 0.5155 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.986e-05/0.4191, allocations: 13.25 kB / 0.5155 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003182/0.4194, allocations: 109.5 kB / 0.5156 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.026e-05/0.4195, allocations: 19.7 kB / 0.5156 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.4198, allocations: 52.11 kB / 0.5157 GB, free: 16.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/0.4198, allocations: 40.84 kB / 0.5157 GB, free: 16.61 MB / 382.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.0001625/0.42, allocations: 178.7 kB / 0.5159 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.437e-05/0.4201, allocations: 49.48 kB / 0.5159 GB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006583/0.4207, allocations: 393 kB / 0.5163 GB, free: 16.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.4208, allocations: 0 / 0.5163 GB, free: 16.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4208, allocations: 3.031 kB / 0.5163 GB, free: 16.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.4208, allocations: 0.6562 kB / 0.5163 GB, free: 16.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007806/0.4216, allocations: 0.7204 MB / 0.517 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4216, allocations: 5.734 kB / 0.517 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-05/0.4217, allocations: 13.69 kB / 0.517 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4217, allocations: 8 kB / 0.517 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.4217, allocations: 1.438 kB / 0.517 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.4217, allocations: 3.047 kB / 0.517 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4217, allocations: 0.9375 kB / 0.517 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002294/0.4219, allocations: 202.4 kB / 0.5172 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.4221, allocations: 133.5 kB / 0.5174 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.526e-05/0.4221, allocations: 14.88 kB / 0.5174 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.4223, allocations: 2.969 kB / 0.5174 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.3e-05/0.4223, allocations: 5.078 kB / 0.5174 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.4223, allocations: 8.75 kB / 0.5174 GB, free: 15.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005246/0.4228, allocations: 415.1 kB / 0.5178 GB, free: 15.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4228, allocations: 0 / 0.5178 GB, free: 15.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009926/0.4238, allocations: 245 kB / 0.518 GB, free: 15.48 MB / 382.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.0009835/0.4248, allocations: 1.034 MB / 0.519 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004591/0.4253, allocations: 227.2 kB / 0.5192 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4253, allocations: 2.625 kB / 0.5192 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.343e-05/0.4254, allocations: 32.47 kB / 0.5193 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/0.426, allocations: 114.5 kB / 0.5194 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00474/0.4308, allocations: 4.118 MB / 0.5234 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.4311, allocations: 0.8194 MB / 0.5242 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004439/0.4315, allocations: 137.4 kB / 0.5243 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.4317, allocations: 167.3 kB / 0.5245 GB, free: 11.39 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4317, allocations: 0 / 0.5245 GB, free: 11.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03293/0.4647, allocations: 13.1 MB / 0.5373 GB, free: 7.469 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.427/8.892, allocations: 14.48 kB / 0.5373 GB, free: 7.457 MB / 382.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)