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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.165/1.165, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1649/0.1649, allocations: 15.33 MB / 305.7 MB, free: 15.37 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 59.91 kB / 370.5 MB, free: 3.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07769/0.0788, allocations: 53.61 MB / 424.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.003427/0.08227, allocations: 2.964 MB / 427 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005419/0.0877, allocations: 6.273 MB / 433.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.08784, allocations: 7.938 kB / 433.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003547/0.0882, allocations: 147.2 kB / 433.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004285/0.08865, allocations: 246 kB / 433.7 MB, free: 4.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.08998, allocations: 0.9588 MB / 434.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004767/0.09047, allocations: 482.6 kB / 435.1 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.09071, allocations: 176.4 kB / 435.3 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.09091, allocations: 223.4 kB / 435.5 MB, free: 2.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000285/0.0912, allocations: 239.1 kB / 435.8 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.702e-05/0.09127, allocations: 28 kB / 435.8 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009954/0.09227, allocations: 0.5538 MB / 436.3 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.723e-05/0.09237, allocations: 87.69 kB / 436.4 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.09255, allocations: 183.1 kB / 436.6 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.09368, allocations: 1.008 MB / 437.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.09369, allocations: 0 / 437.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.0937, allocations: 0 / 437.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.026e-06/0.09371, allocations: 3.938 kB / 437.6 MB, free: 0.5703 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.131/0.2247, allocations: 0.743 MB / 438.4 MB, free: 53.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2247, allocations: 11.06 kB / 438.4 MB, free: 53.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.566e-05/0.2248, allocations: 58.36 kB / 438.4 MB, free: 53.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005086/0.2253, allocations: 104.9 kB / 438.5 MB, free: 53.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003744/0.2257, allocations: 366.2 kB / 438.9 MB, free: 53.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.2257, allocations: 18.28 kB / 438.9 MB, free: 53.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.2258, allocations: 21.41 kB / 438.9 MB, free: 53.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.2262, allocations: 383.3 kB / 439.3 MB, free: 53.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2262, allocations: 3.938 kB / 439.3 MB, free: 53.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.2262, allocations: 9.062 kB / 439.3 MB, free: 53.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2263, allocations: 6.266 kB / 439.3 MB, free: 53.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005828/0.2268, allocations: 0.552 MB / 439.9 MB, free: 53.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.2282, allocations: 1.395 MB / 441.3 MB, free: 52.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.2284, allocations: 173.1 kB / 441.4 MB, free: 52.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.2286, allocations: 93.98 kB / 441.5 MB, free: 52.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001524/0.2301, allocations: 1.904 MB / 443.4 MB, free: 51.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.155e-05/0.2301, allocations: 34.12 kB / 443.5 MB, free: 51.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.2301, allocations: 3.438 kB / 443.5 MB, free: 51.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.000364/0.2305, allocations: 222.5 kB / 443.7 MB, free: 51.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.86e-05/0.2305, allocations: 54.47 kB / 443.7 MB, free: 51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002509/0.2308, allocations: 365.3 kB / 444.1 MB, free: 50.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.2308, allocations: 32.02 kB / 444.1 MB, free: 50.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/0.2309, allocations: 225.8 kB / 444.3 MB, free: 50.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.2309, allocations: 51.5 kB / 444.4 MB, free: 50.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-05/0.231, allocations: 69.31 kB / 444.5 MB, free: 50.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.885e-05/0.231, allocations: 348.3 kB / 444.8 MB, free: 50.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.117e-05/0.2311, allocations: 67 kB / 444.9 MB, free: 50.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.2313, allocations: 243.1 kB / 445.1 MB, free: 50.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.2315, allocations: 343 kB / 445.4 MB, free: 49.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2315, allocations: 3.25 kB / 445.4 MB, free: 49.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003998/0.2319, allocations: 353.8 kB / 445.8 MB, free: 49.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.232, allocations: 8.312 kB / 445.8 MB, free: 49.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.232, allocations: 6.188 kB / 445.8 MB, free: 49.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.232, allocations: 8.531 kB / 445.8 MB, free: 49.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001796/0.2322, allocations: 76.22 kB / 445.9 MB, free: 49.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2322, allocations: 15.25 kB / 445.9 MB, free: 49.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.2324, allocations: 40.3 kB / 445.9 MB, free: 49.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.2324, allocations: 22.94 kB / 446 MB, free: 49.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (35): * Single equations (assignments): 35 * 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 9.607e-05/0.2325, allocations: 162 kB / 446.1 MB, free: 49.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.996e-05/0.2326, allocations: 33.75 kB / 446.1 MB, free: 49.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000427/0.233, allocations: 288.5 kB / 446.4 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.233, allocations: 2.688 kB / 446.4 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.233, allocations: 0 / 446.4 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.233, allocations: 0.5625 kB / 446.4 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004192/0.2335, allocations: 0.6294 MB / 447.1 MB, free: 49.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.2335, allocations: 3.031 kB / 447.1 MB, free: 49.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.144e-05/0.2335, allocations: 15.53 kB / 447.1 MB, free: 49.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2335, allocations: 5.25 kB / 447.1 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.2335, allocations: 3.406 kB / 447.1 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2336, allocations: 3.156 kB / 447.1 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2336, allocations: 4 kB / 447.1 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001358/0.2337, allocations: 171.6 kB / 447.3 MB, free: 49.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.157e-05/0.2338, allocations: 121.5 kB / 447.4 MB, free: 48.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/0.2338, allocations: 15.66 kB / 447.4 MB, free: 48.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.884e-05/0.2339, allocations: 4.625 kB / 447.4 MB, free: 48.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.2339, allocations: 7.281 kB / 447.4 MB, free: 48.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.234, allocations: 3.438 kB / 447.4 MB, free: 48.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002454/0.2342, allocations: 317.3 kB / 447.7 MB, free: 48.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2342, allocations: 0 / 447.7 MB, free: 48.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004487/0.2347, allocations: 167.9 kB / 447.9 MB, free: 48.8 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.00061/0.2353, allocations: 0.9103 MB / 448.8 MB, free: 48.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002284/0.2355, allocations: 165.5 kB / 449 MB, free: 48.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2355, allocations: 1.75 kB / 449 MB, free: 48.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.499e-05/0.2356, allocations: 31.38 kB / 449 MB, free: 48.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.236, allocations: 102.5 kB / 449.1 MB, free: 48.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.2384, allocations: 3.271 MB / 452.4 MB, free: 46.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.2386, allocations: 0.7769 MB / 453.1 MB, free: 45.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002742/0.2389, allocations: 95.59 kB / 453.2 MB, free: 45.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.239, allocations: 123.8 kB / 453.4 MB, free: 45.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.239, allocations: 0 / 453.4 MB, free: 45.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.214/1.453, allocations: 9.604 MB / 463 MB, free: 44.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.309/8.762, allocations: 21.36 kB / 463 MB, free: 44.32 MB / 366.1 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/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)