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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.001095/0.001096, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.00121/0.00121, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2064/0.2064, allocations: 15.26 MB / 306.2 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003209, allocations: 12 kB / 371.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2949, allocations: 54.62 MB / 426.1 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.002566/0.2975, allocations: 2.751 MB / 428.8 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004883/0.3024, allocations: 5.362 MB / 434.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002987/0.3028, allocations: 11.16 kB / 434.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003758/0.3031, allocations: 140.5 kB / 434.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000583/0.3037, allocations: 311.2 kB / 434.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.3055, allocations: 0.8764 MB / 435.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004325/0.3059, allocations: 346 kB / 435.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.3062, allocations: 135.6 kB / 436 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.3063, allocations: 161.5 kB / 436.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.3066, allocations: 220.7 kB / 436.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.3066, allocations: 17.31 kB / 436.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.3077, allocations: 0.636 MB / 437 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.008e-05/0.3078, allocations: 70.23 kB / 437.1 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.058e-05/0.3079, allocations: 84.73 kB / 437.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007067/0.3086, allocations: 0.59 MB / 437.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3086, allocations: 0 / 437.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3086, allocations: 7.219 kB / 437.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.3086, allocations: 0 / 437.8 MB, free: 35.75 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.0007774/0.3094, allocations: 0.659 MB / 438.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3095, allocations: 12.45 kB / 438.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.855e-05/0.3095, allocations: 58.84 kB / 438.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004595/0.31, allocations: 112.8 kB / 438.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.3104, allocations: 331.4 kB / 438.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.3104, allocations: 18.38 kB / 438.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.3104, allocations: 17.12 kB / 439 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00045/0.3109, allocations: 380.4 kB / 439.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3109, allocations: 3.344 kB / 439.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.3109, allocations: 4 kB / 439.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.311, allocations: 6.406 kB / 439.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006332/0.3116, allocations: 0.5489 MB / 439.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.3129, allocations: 1.365 MB / 441.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.3132, allocations: 165.6 kB / 441.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001556/0.3148, allocations: 1.836 MB / 443.3 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.3148, allocations: 41.88 kB / 443.3 MB, free: 31.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.903e-06/0.3148, allocations: 3.25 kB / 443.3 MB, free: 31.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003874/0.3152, allocations: 214.5 kB / 443.5 MB, free: 31.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.3152, allocations: 51.41 kB / 443.6 MB, free: 31.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/0.3155, allocations: 370.4 kB / 443.9 MB, free: 31.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.3156, allocations: 25.7 kB / 443.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.3157, allocations: 224.4 kB / 444.2 MB, free: 31.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.3157, allocations: 48.66 kB / 444.2 MB, free: 31.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.3158, allocations: 7.25 kB / 444.2 MB, free: 31.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.161e-05/0.3159, allocations: 346.8 kB / 444.6 MB, free: 30.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.438e-05/0.316, allocations: 61.27 kB / 444.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.3161, allocations: 247.8 kB / 444.9 MB, free: 30.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.3163, allocations: 101.5 kB / 445 MB, free: 30.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3163, allocations: 4 kB / 445 MB, free: 30.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004027/0.3167, allocations: 344.4 kB / 445.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.3167, allocations: 6.688 kB / 445.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.3167, allocations: 6.531 kB / 445.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3167, allocations: 9.969 kB / 445.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.3169, allocations: 79.61 kB / 445.4 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.161e-05/0.317, allocations: 13.84 kB / 445.4 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.3171, allocations: 32.69 kB / 445.4 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.317e-05/0.3172, allocations: 27.34 kB / 445.5 MB, free: 30.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.3173, allocations: 159.5 kB / 445.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/0.3174, allocations: 38.12 kB / 445.7 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004525/0.3178, allocations: 296.7 kB / 446 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3178, allocations: 0 / 446 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3178, allocations: 3.938 kB / 446 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3178, allocations: 7.156 kB / 446 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00046/0.3183, allocations: 0.6206 MB / 446.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3183, allocations: 0 / 446.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.191e-05/0.3184, allocations: 13.75 kB / 446.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3184, allocations: 3.156 kB / 446.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-06/0.3184, allocations: 0 / 446.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.3184, allocations: 11.02 kB / 446.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3184, allocations: 6.594 kB / 446.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.3186, allocations: 226.6 kB / 446.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.459e-05/0.3187, allocations: 124.2 kB / 447 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.627e-05/0.3187, allocations: 3.938 kB / 447 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.613e-05/0.3188, allocations: 7.156 kB / 447 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.3189, allocations: 10.38 kB / 447 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-06/0.3189, allocations: 3.094 kB / 447 MB, free: 29.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002361/0.3191, allocations: 300.7 kB / 447.3 MB, free: 28.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3191, allocations: 0 / 447.3 MB, free: 28.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004778/0.3196, allocations: 169 kB / 447.4 MB, free: 28.85 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 (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.0006865/0.3203, allocations: 1.299 MB / 448.7 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002264/0.3206, allocations: 160.8 kB / 448.9 MB, free: 27.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3206, allocations: 0 / 448.9 MB, free: 27.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.782e-05/0.3206, allocations: 32.17 kB / 448.9 MB, free: 27.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.321, allocations: 93.58 kB / 449 MB, free: 27.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.3236, allocations: 6.166 MB / 455.2 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.3238, allocations: 0.78 MB / 456 MB, free: 21.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002881/0.3241, allocations: 95.97 kB / 456.1 MB, free: 21.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.3242, allocations: 119.7 kB / 456.2 MB, free: 21.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3242, allocations: 0 / 456.2 MB, free: 21.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.3445, allocations: 9.1 MB / 465.3 MB, free: 20.53 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001348/0.3447, allocations: 174.6 kB / 465.4 MB, free: 20.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.114, allocations: 1.125 kB / 465.4 MB, free: 20.29 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/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) Environment - environmentSimulation: