Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07962/0.07962, allocations: 15.26 MB / 22.74 MB, free: 0.9648 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 181 kB / 27.51 MB, free: 6.121 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 221.5 MB / 253.7 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007805/0.0007805, allocations: 106.5 kB / 308.8 MB, free: 10.94 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.689e-05/1.7e-05, allocations: 0 / 369.7 MB, free: 53.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07757/0.07761, allocations: 54.63 MB / 424.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3131/0.3907, allocations: 94.27 MB / 0.5064 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.391, allocations: 72.12 kB / 0.5065 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03166/0.4226, allocations: 15.42 MB / 0.5215 GB, free: 27.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4227, allocations: 0 / 0.5215 GB, free: 27.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.4227, allocations: 7.875 kB / 0.5216 GB, free: 27.05 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000645/0.4234, allocations: 0.6503 MB / 0.5222 GB, free: 26.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.4234, allocations: 11.73 kB / 0.5222 GB, free: 26.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004092/0.4238, allocations: 134.8 kB / 0.5223 GB, free: 26.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.4241, allocations: 323.7 kB / 0.5226 GB, free: 26.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.4242, allocations: 3.844 kB / 0.5226 GB, free: 26.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.4242, allocations: 15.58 kB / 0.5227 GB, free: 26.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009368/0.4252, allocations: 1.161 MB / 0.5238 GB, free: 26.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005129/0.4257, allocations: 0.6135 MB / 0.5244 GB, free: 26.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4257, allocations: 7.578 kB / 0.5244 GB, free: 26.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.4257, allocations: 0 / 0.5244 GB, free: 26.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.4257, allocations: 3.844 kB / 0.5244 GB, free: 26.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.4278, allocations: 2.254 MB / 0.5266 GB, free: 25.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.634e-05/0.4278, allocations: 54 kB / 0.5267 GB, free: 25.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.377e-05/0.4279, allocations: 31 kB / 0.5267 GB, free: 25.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.4279, allocations: 0 / 0.5267 GB, free: 25.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.035e-05/0.4279, allocations: 31.27 kB / 0.5267 GB, free: 25.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 9.22e-07/0.4279, allocations: 0 / 0.5267 GB, free: 25.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001746/0.4281, allocations: 101.7 kB / 0.5268 GB, free: 25.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.448e-05/0.4281, allocations: 56.05 kB / 0.5269 GB, free: 25.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009789/0.4291, allocations: 1.301 MB / 0.5281 GB, free: 25.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.4291, allocations: 25.7 kB / 0.5282 GB, free: 25.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.4292, allocations: 263.1 kB / 0.5284 GB, free: 24.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.4293, allocations: 18.36 kB / 0.5284 GB, free: 24.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.767e-05/0.4293, allocations: 0 / 0.5284 GB, free: 24.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.4294, allocations: 344.5 kB / 0.5288 GB, free: 24.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002989/0.4297, allocations: 410.7 kB / 0.5291 GB, free: 24.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003353/0.43, allocations: 0.5395 MB / 0.5297 GB, free: 24.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.4312, allocations: 0.5361 MB / 0.5302 GB, free: 24.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.4312, allocations: 3.875 kB / 0.5302 GB, free: 24.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001501/0.4327, allocations: 1.076 MB / 0.5313 GB, free: 24.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4327, allocations: 7.625 kB / 0.5313 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4327, allocations: 4.469 kB / 0.5313 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.4327, allocations: 7.625 kB / 0.5313 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002736/0.433, allocations: 88.55 kB / 0.5314 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.433, allocations: 11.61 kB / 0.5314 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.4334, allocations: 38.72 kB / 0.5314 GB, free: 24.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.4334, allocations: 19.2 kB / 0.5314 GB, free: 24.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.512e-05/0.4335, allocations: 124.3 kB / 0.5315 GB, free: 23.99 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001223/0.4336, allocations: 98.14 kB / 0.5316 GB, free: 23.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.303e-05/0.4337, allocations: 30.84 kB / 0.5317 GB, free: 23.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.4338, allocations: 112.4 kB / 0.5318 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.4338, allocations: 4 kB / 0.5318 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4339, allocations: 0 / 0.5318 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4339, allocations: 0 / 0.5318 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005387/0.4344, allocations: 0.6367 MB / 0.5324 GB, free: 23.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4344, allocations: 4.031 kB / 0.5324 GB, free: 23.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.245e-05/0.4345, allocations: 15.42 kB / 0.5324 GB, free: 23.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.4345, allocations: 3.984 kB / 0.5324 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.4345, allocations: 3.812 kB / 0.5324 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4345, allocations: 7.891 kB / 0.5324 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4345, allocations: 3.781 kB / 0.5324 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.4347, allocations: 224.5 kB / 0.5326 GB, free: 23.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.4348, allocations: 150 kB / 0.5328 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.4348, allocations: 0 / 0.5328 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.435, allocations: 7.844 kB / 0.5328 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.058e-05/0.435, allocations: 15.47 kB / 0.5328 GB, free: 22.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.95e-06/0.435, allocations: 3.812 kB / 0.5328 GB, free: 22.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006365/0.4357, allocations: 1.029 MB / 0.5338 GB, free: 22.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4357, allocations: 3.938 kB / 0.5338 GB, free: 22.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005296/0.4362, allocations: 227.7 kB / 0.534 GB, free: 22.75 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008724/0.4371, allocations: 1.387 MB / 0.5354 GB, free: 21.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.4375, allocations: 489.2 kB / 0.5359 GB, free: 21.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4375, allocations: 3.938 kB / 0.5359 GB, free: 21.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.041e-05/0.4376, allocations: 30.42 kB / 0.5359 GB, free: 21.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.4379, allocations: 71.12 kB / 0.536 GB, free: 21.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006995/0.4386, allocations: 474.7 kB / 0.5364 GB, free: 21.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.4389, allocations: 0.7816 MB / 0.5372 GB, free: 20.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001983/0.4391, allocations: 85.73 kB / 0.5373 GB, free: 20.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.4393, allocations: 106.1 kB / 0.5374 GB, free: 20.34 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4393, allocations: 0 / 0.5374 GB, free: 20.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.4635, allocations: 9.58 MB / 0.5467 GB, free: 15.73 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001358/0.4637, allocations: 128.4 kB / 0.5468 GB, free: 15.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.491, allocations: 4 kB / 0.5468 GB, free: 15.54 MB / 378.7 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)