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.0008019/0.0008019, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.00537/0.00537, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.297/1.297, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1777/0.1777, allocations: 15.27 MB / 306.7 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.0002877, allocations: 8 kB / 372.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2458, allocations: 54.63 MB / 426.8 MB, free: 40.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.002624/0.2484, allocations: 3.086 MB / 429.9 MB, free: 39.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004752/0.2532, allocations: 6.215 MB / 436.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002269/0.2535, allocations: 14.53 kB / 436.1 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.2538, allocations: 141.5 kB / 436.3 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004595/0.2543, allocations: 223.7 kB / 436.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001725/0.256, allocations: 0.8455 MB / 437.3 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006266/0.2567, allocations: 492.1 kB / 437.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.2569, allocations: 137.4 kB / 438 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.2571, allocations: 219.5 kB / 438.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.2574, allocations: 237.4 kB / 438.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.2574, allocations: 15.66 kB / 438.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001668/0.2591, allocations: 0.533 MB / 438.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.2592, allocations: 80.53 kB / 439 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.2594, allocations: 202.1 kB / 439.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001588/0.261, allocations: 0.932 MB / 440.2 MB, free: 34.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.261, allocations: 4 kB / 440.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2611, allocations: 0 / 440.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2611, allocations: 0 / 440.2 MB, free: 34.79 MB / 350.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.0008182/0.2619, allocations: 0.6625 MB / 440.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.2619, allocations: 9.625 kB / 440.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.4e-05/0.262, allocations: 53.81 kB / 440.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004739/0.2625, allocations: 117 kB / 441 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.2629, allocations: 353.6 kB / 441.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.2629, allocations: 20.06 kB / 441.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.232e-05/0.2629, allocations: 26.31 kB / 441.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.2634, allocations: 380.6 kB / 441.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.2635, allocations: 4 kB / 441.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.2635, allocations: 7.344 kB / 441.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.2635, allocations: 6.469 kB / 441.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006502/0.2642, allocations: 0.5523 MB / 442.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.2655, allocations: 1.38 MB / 443.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.2658, allocations: 171.1 kB / 443.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.2659, allocations: 98.59 kB / 444 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001518/0.2675, allocations: 1.859 MB / 445.8 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/0.2675, allocations: 33.69 kB / 445.9 MB, free: 30.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.2675, allocations: 0 / 445.9 MB, free: 30.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003726/0.2679, allocations: 221.3 kB / 446.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.041e-05/0.2679, allocations: 54.59 kB / 446.1 MB, free: 30.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.2682, allocations: 373.9 kB / 446.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.2682, allocations: 25.7 kB / 446.5 MB, free: 30.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.2683, allocations: 234.4 kB / 446.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.2684, allocations: 45.06 kB / 446.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.623e-05/0.2684, allocations: 35.25 kB / 446.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.491e-05/0.2685, allocations: 343 kB / 447.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.58e-05/0.2686, allocations: 65.03 kB / 447.2 MB, free: 29.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.2687, allocations: 236.1 kB / 447.5 MB, free: 29.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.269, allocations: 352.3 kB / 447.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.269, allocations: 3.281 kB / 447.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004077/0.2694, allocations: 348.4 kB / 448.1 MB, free: 29.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.2694, allocations: 6.562 kB / 448.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2694, allocations: 10.22 kB / 448.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.2695, allocations: 8.969 kB / 448.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.2697, allocations: 82.3 kB / 448.3 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.2697, allocations: 10.62 kB / 448.3 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.2699, allocations: 36.53 kB / 448.3 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.2699, allocations: 29.88 kB / 448.3 MB, free: 29.07 MB / 350.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 0.0001059/0.27, allocations: 159.8 kB / 448.5 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.509e-05/0.2701, allocations: 35.84 kB / 448.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004541/0.2705, allocations: 280.3 kB / 448.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2705, allocations: 3.219 kB / 448.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2705, allocations: 3.938 kB / 448.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2705, allocations: 0 / 448.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.271, allocations: 0.6353 MB / 449.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.271, allocations: 3.344 kB / 449.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.232e-05/0.2711, allocations: 9.594 kB / 449.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2711, allocations: 0 / 449.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.2711, allocations: 3.344 kB / 449.5 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.2711, allocations: 3.219 kB / 449.5 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/0.2711, allocations: 4.125 kB / 449.5 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.2712, allocations: 177.2 kB / 449.6 MB, free: 28.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.226e-05/0.2713, allocations: 138 kB / 449.8 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.2714, allocations: 10.91 kB / 449.8 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.313e-05/0.2715, allocations: 3 kB / 449.8 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.095e-05/0.2715, allocations: 10.3 kB / 449.8 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.2715, allocations: 6.938 kB / 449.8 MB, free: 27.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000248/0.2718, allocations: 312.4 kB / 450.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2718, allocations: 0 / 450.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004797/0.2723, allocations: 161.2 kB / 450.3 MB, free: 27.71 MB / 350.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.000599/0.2729, allocations: 0.9085 MB / 451.2 MB, free: 26.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002271/0.2731, allocations: 162.2 kB / 451.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2731, allocations: 3.938 kB / 451.3 MB, free: 26.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.736e-05/0.2732, allocations: 32.23 kB / 451.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.2737, allocations: 95.09 kB / 451.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.2764, allocations: 3.386 MB / 454.8 MB, free: 24.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001599/0.2766, allocations: 0.7755 MB / 455.6 MB, free: 23.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002947/0.2769, allocations: 99.45 kB / 455.7 MB, free: 23.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.277, allocations: 120.8 kB / 455.8 MB, free: 23.58 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.277, allocations: 0 / 455.8 MB, free: 23.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.2968, allocations: 9.26 MB / 465.1 MB, free: 22.81 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001243/0.297, allocations: 197.1 kB / 465.3 MB, free: 22.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.146, allocations: 0 / 465.3 MB, free: 22.55 MB / 350.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)