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.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.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.004723/0.004723, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001295/0.001295, allocations: 202 kB / 16.68 MB, free: 5.969 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2128/0.2128, allocations: 15.33 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002621/0.002621, allocations: 63.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2484, allocations: 53.6 MB / 478.3 MB, free: 25.79 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.03086/0.2793, allocations: 23.44 MB / 0.49 GB, free: 11.31 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007316/0.2867, allocations: 9.16 MB / 0.499 GB, free: 2.113 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.2871, allocations: 11.94 kB / 0.499 GB, free: 2.102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005094/0.2876, allocations: 218.4 kB / 0.4992 GB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007277/0.2883, allocations: 349.2 kB / 0.4995 GB, free: 1.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002465/0.2908, allocations: 1.413 MB / 0.5009 GB, free: 124 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008393/0.2917, allocations: 0.6697 MB / 0.5015 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003593/0.292, allocations: 233.1 kB / 0.5018 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003583/0.2924, allocations: 327.1 kB / 0.5021 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.2929, allocations: 342.8 kB / 0.5024 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.333e-05/0.293, allocations: 36 kB / 0.5024 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.2951, allocations: 0.8152 MB / 0.5032 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.2952, allocations: 131.5 kB / 0.5034 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002758/0.2955, allocations: 254.7 kB / 0.5036 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002344/0.2979, allocations: 1.502 MB / 0.5051 GB, free: 11.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2979, allocations: 7.938 kB / 0.5051 GB, free: 11.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2979, allocations: 3.938 kB / 0.5051 GB, free: 11.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.2979, allocations: 0 / 0.5051 GB, free: 11.81 MB / 382.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.0014/0.2993, allocations: 0.9526 MB / 0.506 GB, free: 10.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2994, allocations: 16.03 kB / 0.506 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.703e-05/0.2995, allocations: 66.72 kB / 0.5061 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007875/0.3003, allocations: 164.2 kB / 0.5062 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006525/0.3009, allocations: 454.3 kB / 0.5067 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.301, allocations: 25.03 kB / 0.5067 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.453e-05/0.301, allocations: 31.94 kB / 0.5067 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008575/0.3019, allocations: 0.5299 MB / 0.5072 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.3019, allocations: 7.938 kB / 0.5073 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.302, allocations: 8 kB / 0.5073 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.302, allocations: 12 kB / 0.5073 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.3033, allocations: 0.8062 MB / 0.5081 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002605/0.3059, allocations: 1.878 MB / 0.5099 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004294/0.3063, allocations: 216.2 kB / 0.5101 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.3066, allocations: 136.8 kB / 0.5102 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003473/0.3101, allocations: 2.714 MB / 0.5129 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.3101, allocations: 30.56 kB / 0.5129 GB, free: 3.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.3101, allocations: 0 / 0.5129 GB, free: 3.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.000612/0.3107, allocations: 307.3 kB / 0.5132 GB, free: 2.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.3108, allocations: 55.41 kB / 0.5133 GB, free: 2.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/0.3113, allocations: 478.8 kB / 0.5137 GB, free: 2.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.3114, allocations: 29.7 kB / 0.5137 GB, free: 2.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.3116, allocations: 300 kB / 0.514 GB, free: 2.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.62e-05/0.3117, allocations: 59.48 kB / 0.5141 GB, free: 1.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3118, allocations: 102 kB / 0.5142 GB, free: 1.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.312, allocations: 362.7 kB / 0.5145 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.3122, allocations: 88.83 kB / 0.5146 GB, free: 1.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.3125, allocations: 353.2 kB / 0.5149 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006098/0.3132, allocations: 0.4924 MB / 0.5154 GB, free: 296 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3132, allocations: 4 kB / 0.5154 GB, free: 292 kB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007889/0.314, allocations: 493.3 kB / 0.5159 GB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.314, allocations: 8 kB / 0.5159 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.314, allocations: 12 kB / 0.5159 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.314, allocations: 12 kB / 0.5159 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/0.3144, allocations: 111.8 kB / 0.516 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/0.3144, allocations: 15.94 kB / 0.5161 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002823/0.3147, allocations: 67.83 kB / 0.5161 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-05/0.3148, allocations: 35.98 kB / 0.5162 GB, free: 15.54 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002029/0.315, allocations: 177.5 kB / 0.5163 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.498e-05/0.3151, allocations: 55.59 kB / 0.5164 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007293/0.3158, allocations: 384 kB / 0.5167 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3158, allocations: 3.984 kB / 0.5167 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3158, allocations: 0 / 0.5167 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3158, allocations: 3.938 kB / 0.5168 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009217/0.3168, allocations: 0.7327 MB / 0.5175 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3168, allocations: 7.984 kB / 0.5175 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.412e-05/0.3169, allocations: 8 kB / 0.5175 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3169, allocations: 4 kB / 0.5175 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.3169, allocations: 4.188 kB / 0.5175 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.3169, allocations: 4 kB / 0.5175 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3169, allocations: 0 / 0.5175 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.3172, allocations: 204.9 kB / 0.5177 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.3173, allocations: 128.7 kB / 0.5178 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.413e-05/0.3174, allocations: 7.984 kB / 0.5178 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.3176, allocations: 8 kB / 0.5178 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.3176, allocations: 4 kB / 0.5178 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.3176, allocations: 4 kB / 0.5178 GB, free: 13.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005087/0.3181, allocations: 414.8 kB / 0.5182 GB, free: 13.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3181, allocations: 0 / 0.5182 GB, free: 13.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008165/0.3189, allocations: 259.1 kB / 0.5185 GB, free: 12.98 MB / 398.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.001116/0.3201, allocations: 1.029 MB / 0.5195 GB, free: 11.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004083/0.3205, allocations: 230 kB / 0.5197 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3205, allocations: 4.062 kB / 0.5197 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.821e-05/0.3206, allocations: 35.92 kB / 0.5197 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005704/0.3211, allocations: 118 kB / 0.5199 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005029/0.3262, allocations: 4.141 MB / 0.5239 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.3266, allocations: 0.8191 MB / 0.5247 GB, free: 6.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003721/0.327, allocations: 132.1 kB / 0.5248 GB, free: 6.039 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/0.3273, allocations: 175.4 kB / 0.525 GB, free: 5.867 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3273, allocations: 0 / 0.525 GB, free: 5.867 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03783/0.3651, allocations: 13.09 MB / 0.5378 GB, free: 8.844 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.671/9.036, allocations: 13.03 kB / 0.5378 GB, free: 8.836 MB / 414.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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_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_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)