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.001821/0.001821, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002624/0.002624, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.736/1.736, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1909/0.1909, allocations: 15.33 MB / 305.7 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.14 kB / 370.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.1002, allocations: 53.61 MB / 424 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004079/0.1044, allocations: 2.972 MB / 427 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006864/0.1113, allocations: 6.273 MB / 433.3 MB, free: 4.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003486/0.1116, allocations: 7.938 kB / 433.3 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005415/0.1122, allocations: 143.2 kB / 433.4 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007293/0.113, allocations: 254 kB / 433.7 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002487/0.1155, allocations: 0.9548 MB / 434.6 MB, free: 3.551 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007172/0.1162, allocations: 490.6 kB / 435.1 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.1165, allocations: 164.5 kB / 435.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002505/0.1168, allocations: 223.4 kB / 435.5 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003676/0.1171, allocations: 247.1 kB / 435.7 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.1172, allocations: 24 kB / 435.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.1187, allocations: 0.5538 MB / 436.3 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1188, allocations: 87.69 kB / 436.4 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.1191, allocations: 179.1 kB / 436.6 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001551/0.1206, allocations: 1.008 MB / 437.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1206, allocations: 8 kB / 437.6 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1206, allocations: 0 / 437.6 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.1207, allocations: 0 / 437.6 MB, free: 0.5898 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.1673/0.288, allocations: 0.7499 MB / 438.3 MB, free: 53.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.2881, allocations: 8.906 kB / 438.4 MB, free: 53.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.298e-05/0.2881, allocations: 58.05 kB / 438.4 MB, free: 53.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006353/0.2888, allocations: 104.6 kB / 438.5 MB, free: 53.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005239/0.2893, allocations: 357.3 kB / 438.9 MB, free: 53.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.2893, allocations: 17.84 kB / 438.9 MB, free: 53.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.777e-05/0.2894, allocations: 24.53 kB / 438.9 MB, free: 53.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005296/0.2899, allocations: 385.9 kB / 439.3 MB, free: 53.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.2899, allocations: 5.812 kB / 439.3 MB, free: 53.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.29, allocations: 12.59 kB / 439.3 MB, free: 53.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.29, allocations: 5.781 kB / 439.3 MB, free: 53.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007295/0.2907, allocations: 0.5413 MB / 439.8 MB, free: 53.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.2924, allocations: 1.402 MB / 441.2 MB, free: 52.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.2927, allocations: 169.6 kB / 441.4 MB, free: 52.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.2929, allocations: 94.05 kB / 441.5 MB, free: 52.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001876/0.2948, allocations: 1.907 MB / 443.4 MB, free: 51.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.2948, allocations: 31.12 kB / 443.4 MB, free: 51.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.2949, allocations: 2.375 kB / 443.4 MB, free: 51.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004202/0.2953, allocations: 222.2 kB / 443.7 MB, free: 51.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.2953, allocations: 54.12 kB / 443.7 MB, free: 51.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.2956, allocations: 370.8 kB / 444.1 MB, free: 51.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.2956, allocations: 32.8 kB / 444.1 MB, free: 51.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.2958, allocations: 228.1 kB / 444.3 MB, free: 50.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.154e-05/0.2958, allocations: 48.02 kB / 444.4 MB, free: 50.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.809e-05/0.2959, allocations: 72.7 kB / 444.4 MB, free: 50.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.307e-05/0.2959, allocations: 346.5 kB / 444.8 MB, free: 50.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.886e-05/0.2961, allocations: 62.2 kB / 444.8 MB, free: 50.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.2962, allocations: 243.4 kB / 445.1 MB, free: 50.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.2965, allocations: 349.3 kB / 445.4 MB, free: 50.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.2965, allocations: 4 kB / 445.4 MB, free: 50.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004477/0.297, allocations: 345.5 kB / 445.8 MB, free: 50.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.297, allocations: 10 kB / 445.8 MB, free: 50.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.297, allocations: 8.156 kB / 445.8 MB, free: 50.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.297, allocations: 8.625 kB / 445.8 MB, free: 50.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.2972, allocations: 81.2 kB / 445.9 MB, free: 50.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.2973, allocations: 15.67 kB / 445.9 MB, free: 50.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.2974, allocations: 31.41 kB / 445.9 MB, free: 50.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.2975, allocations: 26.78 kB / 445.9 MB, free: 50.01 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.0001098/0.2976, allocations: 157.3 kB / 446.1 MB, free: 49.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.2977, allocations: 40.25 kB / 446.1 MB, free: 49.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004695/0.2981, allocations: 281.2 kB / 446.4 MB, free: 49.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2981, allocations: 0 / 446.4 MB, free: 49.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2982, allocations: 6.734 kB / 446.4 MB, free: 49.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2982, allocations: 0 / 446.4 MB, free: 49.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005072/0.2987, allocations: 0.636 MB / 447.1 MB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2987, allocations: 0 / 447.1 MB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.692e-05/0.2988, allocations: 12.69 kB / 447.1 MB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2988, allocations: 10.27 kB / 447.1 MB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.2988, allocations: 4.875 kB / 447.1 MB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2988, allocations: 0.6875 kB / 447.1 MB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2988, allocations: 2.969 kB / 447.1 MB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.299, allocations: 173.2 kB / 447.3 MB, free: 49.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.615e-05/0.2991, allocations: 112.2 kB / 447.4 MB, free: 49.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.469e-05/0.2991, allocations: 19.62 kB / 447.4 MB, free: 49.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.769e-05/0.2992, allocations: 4.5 kB / 447.4 MB, free: 49.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.91e-05/0.2993, allocations: 9.922 kB / 447.4 MB, free: 49.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.2993, allocations: 3.531 kB / 447.4 MB, free: 49.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002971/0.2996, allocations: 315.6 kB / 447.7 MB, free: 48.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2996, allocations: 3.062 kB / 447.7 MB, free: 48.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005461/0.3001, allocations: 165 kB / 447.9 MB, free: 48.96 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.0007612/0.3009, allocations: 0.9092 MB / 448.8 MB, free: 48.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002807/0.3012, allocations: 157.4 kB / 448.9 MB, free: 48.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3012, allocations: 3.094 kB / 448.9 MB, free: 48.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.09e-05/0.3013, allocations: 34.62 kB / 449 MB, free: 48.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.3018, allocations: 104.3 kB / 449.1 MB, free: 48.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.3046, allocations: 3.273 MB / 452.3 MB, free: 46.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/0.3048, allocations: 0.7806 MB / 453.1 MB, free: 45.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.3051, allocations: 90.27 kB / 453.2 MB, free: 45.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.3052, allocations: 120.5 kB / 453.3 MB, free: 45.39 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3052, allocations: 0 / 453.3 MB, free: 45.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.3322, allocations: 9.607 MB / 462.9 MB, free: 44.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.501/8.834, allocations: 13.23 kB / 463 MB, free: 44.46 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)