Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.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.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",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.0008591/0.0008593, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009052/0.0009052, allocations: 168.7 kB / 15.95 MB, free: 204 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.35/1.35, allocations: 223.2 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2327/0.2327, allocations: 15.26 MB / 306.3 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003428/0.0003431, allocations: 8 kB / 371.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2925, allocations: 54.61 MB / 426.2 MB, free: 40.03 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction2): time 0.003139/0.2957, allocations: 3.573 MB / 429.8 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006977/0.3027, allocations: 8.422 MB / 438.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004773/0.3032, allocations: 17.97 kB / 438.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005391/0.3038, allocations: 210.6 kB / 438.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007855/0.3046, allocations: 362.7 kB / 438.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002564/0.3071, allocations: 1.163 MB / 439.9 MB, free: 33.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006394/0.3078, allocations: 0.6211 MB / 440.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.308, allocations: 195.8 kB / 440.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.3083, allocations: 239.1 kB / 441 MB, free: 33.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003259/0.3086, allocations: 329.6 kB / 441.3 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.116e-05/0.3087, allocations: 19.62 kB / 441.3 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.3105, allocations: 0.7772 MB / 442.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.3106, allocations: 103.3 kB / 442.2 MB, free: 32.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.619e-05/0.3107, allocations: 110.9 kB / 442.3 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009471/0.3117, allocations: 1.118 MB / 443.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3117, allocations: 0 / 443.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3117, allocations: 2.75 kB / 443.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.3117, allocations: 0 / 443.4 MB, free: 32.21 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0009413/0.3126, allocations: 0.817 MB / 444.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3127, allocations: 8.969 kB / 444.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.474e-05/0.3128, allocations: 70.05 kB / 444.3 MB, free: 31.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006308/0.3134, allocations: 161.5 kB / 444.5 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.3138, allocations: 409.3 kB / 444.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.3138, allocations: 22.06 kB / 444.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.475e-05/0.3139, allocations: 30.34 kB / 444.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006223/0.3145, allocations: 0.5264 MB / 445.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.3145, allocations: 0 / 445.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.076e-05/0.3146, allocations: 15.19 kB / 445.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.3146, allocations: 6.312 kB / 445.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008925/0.3155, allocations: 0.8071 MB / 446.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.3173, allocations: 1.856 MB / 448.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.3177, allocations: 218 kB / 448.3 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.3179, allocations: 132.5 kB / 448.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002127/0.32, allocations: 2.648 MB / 451.1 MB, free: 27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.32, allocations: 42.56 kB / 451.2 MB, free: 26.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.32, allocations: 0 / 451.2 MB, free: 26.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004783/0.3205, allocations: 292.7 kB / 451.4 MB, free: 26.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.864e-05/0.3206, allocations: 54.56 kB / 451.5 MB, free: 26.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004016/0.321, allocations: 474.4 kB / 452 MB, free: 26.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.321, allocations: 28.55 kB / 452 MB, free: 26.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3211, allocations: 291.6 kB / 452.3 MB, free: 26.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.719e-05/0.3212, allocations: 61.92 kB / 452.3 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/0.3212, allocations: 10.72 kB / 452.3 MB, free: 26.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.561e-05/0.3213, allocations: 360.6 kB / 452.7 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.3214, allocations: 97.12 kB / 452.8 MB, free: 25.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.3216, allocations: 358.5 kB / 453.1 MB, free: 25.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.3218, allocations: 147.5 kB / 453.3 MB, free: 25.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3218, allocations: 3.156 kB / 453.3 MB, free: 25.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006033/0.3224, allocations: 491.5 kB / 453.8 MB, free: 25.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.3225, allocations: 9.281 kB / 453.8 MB, free: 25.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3225, allocations: 9.438 kB / 453.8 MB, free: 25.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.3225, allocations: 12.25 kB / 453.8 MB, free: 25.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002742/0.3228, allocations: 110.3 kB / 453.9 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.3228, allocations: 19.67 kB / 453.9 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.323, allocations: 53.97 kB / 454 MB, free: 25.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.3231, allocations: 38.2 kB / 454 MB, free: 25.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * 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.0001344/0.3232, allocations: 184.8 kB / 454.2 MB, free: 24.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/0.3233, allocations: 44.31 kB / 454.2 MB, free: 24.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006407/0.3239, allocations: 403.3 kB / 454.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.324, allocations: 0 / 454.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.324, allocations: 0 / 454.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.324, allocations: 0 / 454.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005725/0.3246, allocations: 0.7127 MB / 455.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3246, allocations: 2.938 kB / 455.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.29e-05/0.3246, allocations: 8.625 kB / 455.4 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.3247, allocations: 3.406 kB / 455.4 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.3247, allocations: 3.344 kB / 455.4 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3247, allocations: 7.516 kB / 455.4 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3247, allocations: 7.297 kB / 455.4 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001861/0.3249, allocations: 184.8 kB / 455.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.325, allocations: 157.8 kB / 455.7 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.831e-05/0.3251, allocations: 4 kB / 455.7 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3252, allocations: 3.406 kB / 455.7 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.376e-05/0.3252, allocations: 10.39 kB / 455.7 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.3252, allocations: 3.344 kB / 455.7 MB, free: 23.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003294/0.3255, allocations: 384.1 kB / 456.1 MB, free: 23.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3256, allocations: 3.938 kB / 456.1 MB, free: 23.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006869/0.3262, allocations: 249.4 kB / 456.4 MB, free: 23.58 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.0007946/0.3271, allocations: 1.028 MB / 457.4 MB, free: 22.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003192/0.3274, allocations: 214.2 kB / 457.6 MB, free: 22.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3274, allocations: 7.312 kB / 457.6 MB, free: 22.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.669e-05/0.3274, allocations: 37.03 kB / 457.6 MB, free: 22.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005408/0.328, allocations: 101.9 kB / 457.7 MB, free: 22.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.3308, allocations: 2.601 MB / 460.3 MB, free: 21.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.331, allocations: 0.8175 MB / 461.1 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004596/0.3315, allocations: 132 kB / 461.3 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.3317, allocations: 176.9 kB / 461.5 MB, free: 20.18 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3317, allocations: 0 / 461.5 MB, free: 20.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.3589, allocations: 12.35 MB / 473.8 MB, free: 18.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001263/0.3591, allocations: 184.5 kB / 474 MB, free: 17.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.342, allocations: 0 / 474 MB, free: 17.96 MB / 350.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1) Environment - environmentSimulation: