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.007505/0.007505, allocations: 96.89 kB / 15.73 MB, free: 6 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.00192/0.00192, allocations: 190 kB / 16.67 MB, free: 5.93 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.517/1.517, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2361/0.2361, allocations: 15.31 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 67.89 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2768, allocations: 53.6 MB / 478.3 MB, free: 25.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.003342/0.2802, allocations: 2.983 MB / 481.3 MB, free: 23.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005234/0.2854, allocations: 6.267 MB / 487.6 MB, free: 18.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.2856, allocations: 7.719 kB / 487.6 MB, free: 18.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003838/0.286, allocations: 155 kB / 487.7 MB, free: 18.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004725/0.2865, allocations: 248.3 kB / 488 MB, free: 18.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00169/0.2882, allocations: 0.9506 MB / 488.9 MB, free: 17.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005379/0.2887, allocations: 494.9 kB / 489.4 MB, free: 17.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.289, allocations: 159.1 kB / 489.6 MB, free: 17.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.2892, allocations: 233.8 kB / 489.8 MB, free: 17.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003166/0.2895, allocations: 237.7 kB / 490 MB, free: 17.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.535e-05/0.2896, allocations: 28.47 kB / 490 MB, free: 17.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.2907, allocations: 0.5497 MB / 490.6 MB, free: 17.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.189e-05/0.2908, allocations: 87.33 kB / 490.7 MB, free: 16.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.291, allocations: 191.7 kB / 490.9 MB, free: 16.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.2922, allocations: 1.019 MB / 491.9 MB, free: 16.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.2922, allocations: 1.219 kB / 491.9 MB, free: 16.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2922, allocations: 0 / 491.9 MB, free: 16.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2923, allocations: 0 / 491.9 MB, free: 16.27 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.0008482/0.2931, allocations: 0.7713 MB / 492.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2932, allocations: 9 kB / 492.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.457e-05/0.2932, allocations: 53.86 kB / 492.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004923/0.2937, allocations: 114.6 kB / 492.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004715/0.2942, allocations: 378.3 kB / 493.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.2942, allocations: 17 kB / 493.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.2943, allocations: 22.44 kB / 493.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005275/0.2948, allocations: 394.7 kB / 493.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2948, allocations: 1.312 kB / 493.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.2949, allocations: 10.25 kB / 493.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.2949, allocations: 5.594 kB / 493.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007674/0.2957, allocations: 0.5495 MB / 494.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.2972, allocations: 1.406 MB / 495.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.2975, allocations: 161 kB / 495.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.2977, allocations: 102.4 kB / 495.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001823/0.2995, allocations: 1.9 MB / 497.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.2995, allocations: 38.56 kB / 497.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.2996, allocations: 0 / 497.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0005049/0.3001, allocations: 222.8 kB / 498 MB, free: 11.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.3001, allocations: 52.91 kB / 498.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/0.3005, allocations: 372.5 kB / 498.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3005, allocations: 29.64 kB / 498.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.3006, allocations: 236.8 kB / 498.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.3007, allocations: 50.48 kB / 498.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3008, allocations: 68.25 kB / 498.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.637e-05/0.3009, allocations: 351 kB / 499.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.301, allocations: 58.94 kB / 499.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.3012, allocations: 239.5 kB / 499.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004086/0.3016, allocations: 346 kB / 499.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.3017, allocations: 1.375 kB / 499.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005468/0.3022, allocations: 346.2 kB / 0.4884 GB, free: 9.609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.3022, allocations: 7.5 kB / 0.4884 GB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.3022, allocations: 6.812 kB / 0.4884 GB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.3023, allocations: 9.406 kB / 0.4884 GB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.3025, allocations: 84.09 kB / 0.4885 GB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.3025, allocations: 18.89 kB / 0.4885 GB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.3027, allocations: 37.45 kB / 0.4885 GB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/0.3028, allocations: 28.06 kB / 0.4886 GB, free: 9.543 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.0001268/0.3029, allocations: 152 kB / 0.4887 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.303, allocations: 36.42 kB / 0.4887 GB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004529/0.3034, allocations: 296.1 kB / 0.489 GB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3034, allocations: 0 / 0.489 GB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3035, allocations: 3.938 kB / 0.489 GB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3035, allocations: 5.328 kB / 0.489 GB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005303/0.304, allocations: 0.6302 MB / 0.4897 GB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.304, allocations: 1.375 kB / 0.4897 GB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.3041, allocations: 17.61 kB / 0.4897 GB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3041, allocations: 6.75 kB / 0.4897 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.3041, allocations: 5.312 kB / 0.4897 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3041, allocations: 1.375 kB / 0.4897 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3041, allocations: 2.75 kB / 0.4897 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.3043, allocations: 177.4 kB / 0.4899 GB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.474e-05/0.3044, allocations: 119.8 kB / 0.49 GB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.786e-05/0.3045, allocations: 6.703 kB / 0.49 GB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.3046, allocations: 10.73 kB / 0.49 GB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.818e-05/0.3046, allocations: 6.75 kB / 0.49 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.3046, allocations: 4.125 kB / 0.49 GB, free: 8.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003036/0.3049, allocations: 314.8 kB / 0.4903 GB, free: 8.051 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3049, allocations: 0 / 0.4903 GB, free: 8.051 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000567/0.3055, allocations: 172.1 kB / 0.4905 GB, free: 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.0007089/0.3062, allocations: 0.91 MB / 0.4914 GB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002671/0.3065, allocations: 161.5 kB / 0.4915 GB, free: 7.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3065, allocations: 0 / 0.4915 GB, free: 7.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.335e-05/0.3065, allocations: 32.05 kB / 0.4915 GB, free: 7.121 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005065/0.307, allocations: 105.2 kB / 0.4916 GB, free: 7.066 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.31, allocations: 3.258 MB / 0.4948 GB, free: 4.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.3102, allocations: 0.7719 MB / 0.4956 GB, free: 3.734 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002598/0.3105, allocations: 88.8 kB / 0.4957 GB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.3107, allocations: 120.5 kB / 0.4958 GB, free: 3.605 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3107, allocations: 0 / 0.4958 GB, free: 3.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03206/0.3427, allocations: 9.722 MB / 0.5053 GB, free: 10.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.452/8.795, allocations: 10.34 kB / 0.5053 GB, free: 10.43 MB / 382.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)