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.001242/0.001249, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.00128/0.00128, allocations: 194.3 kB / 16.14 MB, free: 6.715 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.247/1.247, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1837/0.1837, allocations: 15.32 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 67.91 kB / 369.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09579, allocations: 53.61 MB / 423.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004651/0.1005, allocations: 3.453 MB / 426.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006503/0.107, allocations: 6.263 MB / 433.1 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004133/0.1075, allocations: 15.88 kB / 433.1 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004957/0.108, allocations: 139.4 kB / 433.2 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006805/0.1087, allocations: 222.3 kB / 433.5 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001919/0.1106, allocations: 0.835 MB / 434.3 MB, free: 3.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006514/0.1113, allocations: 0.4907 MB / 434.8 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.1116, allocations: 144.5 kB / 434.9 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.1118, allocations: 215.3 kB / 435.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.1122, allocations: 247.1 kB / 435.4 MB, free: 2.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.965e-05/0.1123, allocations: 12 kB / 435.4 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.1135, allocations: 0.5459 MB / 435.9 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.1136, allocations: 79.67 kB / 436 MB, free: 1.973 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.1138, allocations: 175.1 kB / 436.2 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.1153, allocations: 0.9341 MB / 437.1 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1153, allocations: 3.984 kB / 437.1 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1153, allocations: 0 / 437.1 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.1153, allocations: 0 / 437.1 MB, free: 0.8594 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.001119/0.1165, allocations: 0.7517 MB / 437.9 MB, free: 60 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1165, allocations: 12.03 kB / 437.9 MB, free: 48 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.157/0.2735, allocations: 54.69 kB / 437.9 MB, free: 54.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005924/0.2741, allocations: 108.7 kB / 438 MB, free: 54.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.2745, allocations: 361.5 kB / 438.4 MB, free: 53.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.2746, allocations: 18 kB / 438.4 MB, free: 53.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.2746, allocations: 15.03 kB / 438.4 MB, free: 53.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.2751, allocations: 383.5 kB / 438.8 MB, free: 53.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2751, allocations: 4.75 kB / 438.8 MB, free: 53.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.2752, allocations: 10.19 kB / 438.8 MB, free: 53.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2752, allocations: 6.5 kB / 438.8 MB, free: 53.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006149/0.2758, allocations: 0.5489 MB / 439.4 MB, free: 53.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.2772, allocations: 1.403 MB / 440.8 MB, free: 52.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.2775, allocations: 166.7 kB / 440.9 MB, free: 52.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.2776, allocations: 100.3 kB / 441 MB, free: 52.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00172/0.2794, allocations: 1.896 MB / 442.9 MB, free: 51.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.2794, allocations: 35.22 kB / 443 MB, free: 51.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.2794, allocations: 0 / 443 MB, free: 51.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.00041/0.2798, allocations: 223.7 kB / 443.2 MB, free: 51.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.2799, allocations: 54.28 kB / 443.2 MB, free: 51.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.2802, allocations: 370.1 kB / 443.6 MB, free: 51.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.2802, allocations: 28.52 kB / 443.6 MB, free: 51.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.2804, allocations: 223.9 kB / 443.8 MB, free: 51.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.2804, allocations: 59.45 kB / 443.9 MB, free: 51.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.09e-05/0.2805, allocations: 71.38 kB / 444 MB, free: 51.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.2806, allocations: 347.8 kB / 444.3 MB, free: 50.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-05/0.2807, allocations: 62.5 kB / 444.4 MB, free: 50.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.2808, allocations: 242.5 kB / 444.6 MB, free: 50.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.2811, allocations: 347.2 kB / 444.9 MB, free: 50.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2811, allocations: 2.875 kB / 444.9 MB, free: 50.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000414/0.2815, allocations: 348 kB / 445.3 MB, free: 50.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.2816, allocations: 5.781 kB / 445.3 MB, free: 50.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.2816, allocations: 8.156 kB / 445.3 MB, free: 50.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.2816, allocations: 16.09 kB / 445.3 MB, free: 50.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.2818, allocations: 71.84 kB / 445.4 MB, free: 50.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.2818, allocations: 13.38 kB / 445.4 MB, free: 50.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.282, allocations: 41.66 kB / 445.4 MB, free: 50.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.282, allocations: 20.09 kB / 445.5 MB, free: 50.2 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.0001061/0.2821, allocations: 169.2 kB / 445.6 MB, free: 50.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.959e-05/0.2822, allocations: 32.03 kB / 445.7 MB, free: 50.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004412/0.2826, allocations: 271.8 kB / 445.9 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2826, allocations: 4.828 kB / 445.9 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2827, allocations: 0 / 445.9 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2827, allocations: 3.953 kB / 445.9 MB, free: 49.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.2831, allocations: 0.6317 MB / 446.6 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2831, allocations: 0.625 kB / 446.6 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.585e-05/0.2832, allocations: 14.47 kB / 446.6 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.2832, allocations: 6.656 kB / 446.6 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.2832, allocations: 4.062 kB / 446.6 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2832, allocations: 1.594 kB / 446.6 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2832, allocations: 3.375 kB / 446.6 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001497/0.2834, allocations: 175.3 kB / 446.8 MB, free: 49.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.2835, allocations: 120.5 kB / 446.9 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.934e-05/0.2835, allocations: 12.06 kB / 446.9 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.523e-05/0.2836, allocations: 3.656 kB / 446.9 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.861e-05/0.2836, allocations: 10.98 kB / 446.9 MB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.2837, allocations: 3.594 kB / 446.9 MB, free: 49.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002414/0.2839, allocations: 316 kB / 447.2 MB, free: 49.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.21e-07/0.2839, allocations: 0 / 447.2 MB, free: 49.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004658/0.2844, allocations: 170.6 kB / 447.4 MB, free: 49.18 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.0006124/0.285, allocations: 0.9127 MB / 448.3 MB, free: 48.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.2852, allocations: 161 kB / 448.5 MB, free: 48.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2852, allocations: 0 / 448.5 MB, free: 48.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.724e-05/0.2853, allocations: 31.56 kB / 448.5 MB, free: 48.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000474/0.2858, allocations: 94.88 kB / 448.6 MB, free: 48.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.2884, allocations: 3.363 MB / 451.9 MB, free: 46.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.2885, allocations: 0.7779 MB / 452.7 MB, free: 45.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002854/0.2888, allocations: 98.05 kB / 452.8 MB, free: 45.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.289, allocations: 125.4 kB / 452.9 MB, free: 45.49 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.289, allocations: 0 / 452.9 MB, free: 45.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0169/0.3059, allocations: 9.373 MB / 462.3 MB, free: 44.69 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001312/0.306, allocations: 193.3 kB / 462.5 MB, free: 44.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.072, allocations: 0 / 462.5 MB, free: 44.43 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)