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.1026/0.1026, allocations: 15.26 MB / 27.82 MB, free: 5.395 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 184.5 kB / 32.7 MB, free: 0.5156 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.346/1.346, allocations: 221.4 MB / 258.8 MB, free: 0 / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009612/0.0009612, allocations: 99.86 kB / 314 MB, free: 15.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.225e-05/4.226e-05, allocations: 3.938 kB / 376.6 MB, free: 1.328 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3391, allocations: 54.61 MB / 431.2 MB, free: 50.16 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.4629, allocations: 94.94 MB / 0.5138 GB, free: 4.316 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.4633, allocations: 63.97 kB / 0.5139 GB, free: 4.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04041/0.5037, allocations: 15.66 MB / 0.5292 GB, free: 4.742 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5038, allocations: 1.969 kB / 0.5292 GB, free: 4.742 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.528e-05/0.5038, allocations: 4 kB / 0.5292 GB, free: 4.738 MB / 394.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.0009197/0.5047, allocations: 0.6514 MB / 0.5298 GB, free: 4.047 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.5048, allocations: 8.031 kB / 0.5298 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.367e-05/0.5049, allocations: 58.55 kB / 0.5299 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004721/0.5053, allocations: 135.7 kB / 0.53 GB, free: 3.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004361/0.5058, allocations: 320.5 kB / 0.5303 GB, free: 3.488 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.5058, allocations: 20.39 kB / 0.5303 GB, free: 3.469 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.5059, allocations: 24 kB / 0.5303 GB, free: 3.445 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007914/0.5067, allocations: 0.6619 MB / 0.531 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.5067, allocations: 3.938 kB / 0.531 GB, free: 2.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.5067, allocations: 8 kB / 0.531 GB, free: 2.742 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.5067, allocations: 8 kB / 0.531 GB, free: 2.734 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.508, allocations: 1.178 MB / 0.5322 GB, free: 1.559 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.5107, allocations: 2.326 MB / 0.5344 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.957e-05/0.5108, allocations: 46.56 kB / 0.5345 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.85e-05/0.5108, allocations: 32.91 kB / 0.5345 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.5109, allocations: 4 kB / 0.5345 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.5109, allocations: 30.56 kB / 0.5345 GB, free: 15.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 1.623e-06/0.5109, allocations: 4 kB / 0.5345 GB, free: 15.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002284/0.5111, allocations: 103 kB / 0.5346 GB, free: 14.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.5112, allocations: 52.91 kB / 0.5347 GB, free: 14.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.5125, allocations: 1.338 MB / 0.536 GB, free: 13.51 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.5125, allocations: 29.7 kB / 0.536 GB, free: 13.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.5127, allocations: 254.9 kB / 0.5363 GB, free: 13.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.5127, allocations: 23.7 kB / 0.5363 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.777e-05/0.5127, allocations: 4 kB / 0.5363 GB, free: 13.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.5129, allocations: 346.8 kB / 0.5366 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004047/0.5133, allocations: 411.8 kB / 0.537 GB, free: 12.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.5138, allocations: 0.5425 MB / 0.5375 GB, free: 11.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004586/0.5142, allocations: 451.7 kB / 0.538 GB, free: 11.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5143, allocations: 0 / 0.538 GB, free: 11.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001153/0.5154, allocations: 1.01 MB / 0.539 GB, free: 10.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.5154, allocations: 8.781 kB / 0.539 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.5155, allocations: 7.984 kB / 0.539 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.5155, allocations: 8 kB / 0.539 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003053/0.5158, allocations: 75.89 kB / 0.5391 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.5158, allocations: 12.5 kB / 0.5391 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.5162, allocations: 47.95 kB / 0.5391 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.319e-05/0.5163, allocations: 31.94 kB / 0.5392 GB, free: 10.18 MB / 410.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 9.548e-05/0.5164, allocations: 124.8 kB / 0.5393 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.07e-05/0.5165, allocations: 35.53 kB / 0.5393 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002154/0.5167, allocations: 116.6 kB / 0.5394 GB, free: 9.898 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.5167, allocations: 1.312 kB / 0.5394 GB, free: 9.898 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5167, allocations: 0 / 0.5394 GB, free: 9.898 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.5167, allocations: 6.688 kB / 0.5394 GB, free: 9.895 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007139/0.5174, allocations: 0.6742 MB / 0.5401 GB, free: 9.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.5174, allocations: 0 / 0.5401 GB, free: 9.145 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.852e-05/0.5175, allocations: 15.92 kB / 0.5401 GB, free: 9.129 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5175, allocations: 7.938 kB / 0.5401 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.5175, allocations: 3.953 kB / 0.5401 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.5175, allocations: 8.188 kB / 0.5401 GB, free: 9.109 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5176, allocations: 2.188 kB / 0.5401 GB, free: 9.109 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002259/0.5178, allocations: 233.4 kB / 0.5403 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.5179, allocations: 152.6 kB / 0.5405 GB, free: 8.648 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.518, allocations: 0 / 0.5405 GB, free: 8.648 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.5181, allocations: 7.984 kB / 0.5405 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.227e-05/0.5182, allocations: 17.55 kB / 0.5405 GB, free: 8.625 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.5182, allocations: 0 / 0.5405 GB, free: 8.625 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009422/0.5191, allocations: 1.063 MB / 0.5415 GB, free: 7.566 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5191, allocations: 0 / 0.5415 GB, free: 7.566 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007166/0.5199, allocations: 243.7 kB / 0.5418 GB, free: 7.328 MB / 410.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.001109/0.521, allocations: 1.387 MB / 0.5431 GB, free: 5.879 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005696/0.5216, allocations: 0.4917 MB / 0.5436 GB, free: 5.387 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5216, allocations: 1.375 kB / 0.5436 GB, free: 5.387 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.201e-05/0.5216, allocations: 28.17 kB / 0.5436 GB, free: 5.359 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.5221, allocations: 95.23 kB / 0.5437 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009324/0.523, allocations: 480.6 kB / 0.5442 GB, free: 4.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.5234, allocations: 0.7836 MB / 0.545 GB, free: 3.938 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.5236, allocations: 86.02 kB / 0.545 GB, free: 3.863 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.5238, allocations: 111.4 kB / 0.5451 GB, free: 3.754 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5238, allocations: 0 / 0.5451 GB, free: 3.754 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.5483, allocations: 11.85 MB / 0.5567 GB, free: 8.148 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/0.5485, allocations: 161.8 kB / 0.5569 GB, free: 7.914 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.274/2.822, allocations: 0 / 0.5569 GB, free: 7.914 MB / 426.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)