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.001137/0.001137, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001122/0.001122, allocations: 193.3 kB / 16.25 MB, free: 6.621 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.237/1.237, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1944/0.1944, allocations: 15.31 MB / 305.4 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.00125, allocations: 63.91 kB / 369.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.09056, allocations: 53.62 MB / 423.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.00425/0.09484, allocations: 3.463 MB / 427 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006074/0.1009, allocations: 6.196 MB / 433.2 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.1012, allocations: 15.88 kB / 433.2 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004084/0.1016, allocations: 147.4 kB / 433.4 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005092/0.1021, allocations: 218.4 kB / 433.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001554/0.1037, allocations: 0.8585 MB / 434.4 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005247/0.1042, allocations: 0.4908 MB / 434.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.1044, allocations: 156.5 kB / 435.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.1047, allocations: 227.4 kB / 435.3 MB, free: 2.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.105, allocations: 263 kB / 435.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.661e-05/0.105, allocations: 24 kB / 435.6 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009465/0.106, allocations: 0.5654 MB / 436.1 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.272e-05/0.1061, allocations: 87.73 kB / 436.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.1062, allocations: 187.1 kB / 436.4 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.1073, allocations: 0.9691 MB / 437.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1074, allocations: 0 / 437.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1074, allocations: 0 / 437.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.311e-06/0.1074, allocations: 0 / 437.4 MB, free: 0.6602 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.1608/0.2681, allocations: 0.7512 MB / 438.1 MB, free: 53.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2682, allocations: 10.06 kB / 438.1 MB, free: 53.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.664e-05/0.2683, allocations: 57.39 kB / 438.2 MB, free: 53.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.2688, allocations: 103.9 kB / 438.3 MB, free: 53.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.2692, allocations: 363.6 kB / 438.7 MB, free: 53.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.2692, allocations: 17.12 kB / 438.7 MB, free: 53.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.2693, allocations: 20.41 kB / 438.7 MB, free: 53.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004763/0.2697, allocations: 386.1 kB / 439.1 MB, free: 53.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.2698, allocations: 3.938 kB / 439.1 MB, free: 53.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.2698, allocations: 10.44 kB / 439.1 MB, free: 53.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.2698, allocations: 7.688 kB / 439.1 MB, free: 53.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006142/0.2704, allocations: 0.5448 MB / 439.6 MB, free: 53.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.2718, allocations: 1.4 MB / 441 MB, free: 52.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002616/0.2721, allocations: 167.2 kB / 441.2 MB, free: 52.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.2722, allocations: 97.98 kB / 441.3 MB, free: 52.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001652/0.2739, allocations: 1.907 MB / 443.2 MB, free: 51.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.2739, allocations: 34.94 kB / 443.2 MB, free: 51.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.2739, allocations: 0.6875 kB / 443.2 MB, free: 51.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003865/0.2743, allocations: 219.9 kB / 443.5 MB, free: 51.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/0.2743, allocations: 58 kB / 443.5 MB, free: 51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.2746, allocations: 372.5 kB / 443.9 MB, free: 50.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.2746, allocations: 25.7 kB / 443.9 MB, free: 50.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.051e-05/0.2747, allocations: 226.9 kB / 444.1 MB, free: 50.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.654e-05/0.2747, allocations: 49.77 kB / 444.2 MB, free: 50.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.19e-05/0.2748, allocations: 74.69 kB / 444.2 MB, free: 50.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.458e-05/0.2749, allocations: 343.8 kB / 444.6 MB, free: 50.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.592e-05/0.275, allocations: 67.14 kB / 444.6 MB, free: 50.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.2751, allocations: 240.7 kB / 444.9 MB, free: 50.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00028/0.2754, allocations: 347 kB / 445.2 MB, free: 49.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.2754, allocations: 3.312 kB / 445.2 MB, free: 49.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004272/0.2759, allocations: 347.9 kB / 445.6 MB, free: 49.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2759, allocations: 11.47 kB / 445.6 MB, free: 49.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2759, allocations: 5.812 kB / 445.6 MB, free: 49.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.2759, allocations: 8.594 kB / 445.6 MB, free: 49.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.2761, allocations: 74.62 kB / 445.7 MB, free: 49.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.2761, allocations: 17.75 kB / 445.7 MB, free: 49.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.2763, allocations: 35.31 kB / 445.7 MB, free: 49.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.2764, allocations: 23.59 kB / 445.7 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 0.0001101/0.2765, allocations: 164.1 kB / 445.9 MB, free: 49.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/0.2765, allocations: 35.5 kB / 445.9 MB, free: 49.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004608/0.277, allocations: 286.9 kB / 446.2 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.277, allocations: 1.125 kB / 446.2 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.277, allocations: 3.219 kB / 446.2 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.277, allocations: 0.75 kB / 446.2 MB, free: 49.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004654/0.2775, allocations: 0.6287 MB / 446.8 MB, free: 49.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2775, allocations: 0.5 kB / 446.8 MB, free: 49.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-05/0.2776, allocations: 13.12 kB / 446.9 MB, free: 49.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.2776, allocations: 10.47 kB / 446.9 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.2776, allocations: 1.438 kB / 446.9 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2776, allocations: 3.281 kB / 446.9 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2776, allocations: 7.016 kB / 446.9 MB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001541/0.2778, allocations: 181.7 kB / 447.1 MB, free: 49.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/0.2778, allocations: 113 kB / 447.2 MB, free: 48.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/0.2779, allocations: 11.09 kB / 447.2 MB, free: 48.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.753e-05/0.278, allocations: 7.031 kB / 447.2 MB, free: 48.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.278, allocations: 14.86 kB / 447.2 MB, free: 48.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.278, allocations: 3.344 kB / 447.2 MB, free: 48.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002414/0.2783, allocations: 315.7 kB / 447.5 MB, free: 48.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2783, allocations: 0 / 447.5 MB, free: 48.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004658/0.2788, allocations: 163 kB / 447.7 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.0006584/0.2794, allocations: 0.9151 MB / 448.6 MB, free: 48.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002444/0.2797, allocations: 162.3 kB / 448.7 MB, free: 48.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2797, allocations: 1.688 kB / 448.7 MB, free: 48.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.266e-05/0.2798, allocations: 32.05 kB / 448.8 MB, free: 48.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.2802, allocations: 89.34 kB / 448.9 MB, free: 48.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.2829, allocations: 3.365 MB / 452.2 MB, free: 45.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.283, allocations: 0.7713 MB / 453 MB, free: 45.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002981/0.2833, allocations: 102.4 kB / 453.1 MB, free: 45.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.2835, allocations: 120.8 kB / 453.2 MB, free: 45.1 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2835, allocations: 0 / 453.2 MB, free: 45.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.3008, allocations: 9.543 MB / 462.8 MB, free: 44.3 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001249/0.301, allocations: 201.3 kB / 463 MB, free: 44.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.975/2.276, allocations: 6.469 kB / 463 MB, free: 44.04 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)