Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 113 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 213.7 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.348/1.348, allocations: 230.6 MB / 256 MB, free: 8.234 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.127/0.127, allocations: 23.89 MB / 336.3 MB, free: 11.2 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 74.7 kB / 471.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2896, allocations: 59.86 MB / 0.5187 GB, free: 9.59 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66: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 master/Obsolete.mo:14335:7-14335:66: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.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell): time 0.03633/0.326, allocations: 28.41 MB / 0.5464 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02691/0.3529, allocations: 21.75 MB / 0.5677 GB, free: 7.418 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.354, allocations: 31.75 kB / 0.5677 GB, free: 7.387 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.3554, allocations: 0.5281 MB / 0.5682 GB, free: 6.969 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002661/0.3581, allocations: 1.007 MB / 0.5692 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008876/0.3669, allocations: 3.351 MB / 0.5725 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.3699, allocations: 1.806 MB / 0.5742 GB, free: 1.172 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009678/0.3709, allocations: 0.7588 MB / 0.575 GB, free: 400 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008761/0.3718, allocations: 0.8024 MB / 0.5757 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.3729, allocations: 0.9029 MB / 0.5766 GB, free: 14.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002016/0.3731, allocations: 148 kB / 0.5768 GB, free: 14.54 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005775/0.3789, allocations: 2.087 MB / 0.5788 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004143/0.3793, allocations: 378.8 kB / 0.5792 GB, free: 12.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008715/0.3802, allocations: 0.8126 MB / 0.58 GB, free: 11.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008607/0.3888, allocations: 4.058 MB / 0.5839 GB, free: 7.184 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3888, allocations: 4 kB / 0.5839 GB, free: 7.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3888, allocations: 0 / 0.5839 GB, free: 7.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.595e-05/0.3888, allocations: 0 / 0.5839 GB, free: 7.18 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003367/0.3922, allocations: 2.076 MB / 0.5859 GB, free: 5.062 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3922, allocations: 15.97 kB / 0.586 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002201/0.3924, allocations: 182.3 kB / 0.5861 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001731/0.3942, allocations: 447.1 kB / 0.5866 GB, free: 4.422 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/0.3959, allocations: 0.9881 MB / 0.5875 GB, free: 3.406 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.3961, allocations: 209.5 kB / 0.5877 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002004/0.3963, allocations: 124 kB / 0.5878 GB, free: 3.055 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002655/0.3989, allocations: 1.764 MB / 0.5896 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.399, allocations: 0 / 0.5896 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/0.3991, allocations: 52 kB / 0.5896 GB, free: 1.168 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/0.3991, allocations: 32 kB / 0.5897 GB, free: 1.137 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003377/0.4025, allocations: 2.342 MB / 0.5919 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008283/0.4108, allocations: 5.528 MB / 0.5973 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.4121, allocations: 0.6971 MB / 0.598 GB, free: 8.355 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005772/0.4127, allocations: 344.4 kB / 0.5983 GB, free: 8.012 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006743/0.4194, allocations: 2.986 MB / 0.6013 GB, free: 5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.4194, allocations: 38.56 kB / 0.6013 GB, free: 4.953 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 1.713e-06/0.4194, allocations: 0 / 0.6013 GB, free: 4.953 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.00144/0.4209, allocations: 0.6504 MB / 0.6019 GB, free: 4.289 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/0.421, allocations: 110.8 kB / 0.602 GB, free: 4.156 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.4225, allocations: 1.307 MB / 0.6033 GB, free: 2.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/0.4226, allocations: 37.69 kB / 0.6034 GB, free: 2.797 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006532/0.4232, allocations: 0.8568 MB / 0.6042 GB, free: 1.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/0.4234, allocations: 150.8 kB / 0.6043 GB, free: 1.781 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003705/0.4237, allocations: 295.3 kB / 0.6046 GB, free: 1.488 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4239, allocations: 353.9 kB / 0.605 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005418/0.4245, allocations: 343.8 kB / 0.6053 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.4257, allocations: 1.163 MB / 0.6064 GB, free: 15.23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.4275, allocations: 1.529 MB / 0.6079 GB, free: 13.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/0.4275, allocations: 8 kB / 0.6079 GB, free: 13.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002397/0.4299, allocations: 1.567 MB / 0.6094 GB, free: 11.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.4299, allocations: 24 kB / 0.6095 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/0.43, allocations: 28 kB / 0.6095 GB, free: 11.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005861/0.4306, allocations: 157.5 kB / 0.6096 GB, free: 11.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.4317, allocations: 399.4 kB / 0.61 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003034/0.4348, allocations: 3.878 MB / 0.6138 GB, free: 6.934 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008641/0.4356, allocations: 186.6 kB / 0.614 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.4358, allocations: 108.1 kB / 0.6141 GB, free: 6.645 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004777/0.4362, allocations: 333 kB / 0.6144 GB, free: 6.309 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.4364, allocations: 119.2 kB / 0.6145 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.4383, allocations: 0.9334 MB / 0.6154 GB, free: 5.207 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.4383, allocations: 7.938 kB / 0.6154 GB, free: 5.199 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.4383, allocations: 0 / 0.6154 GB, free: 5.199 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4383, allocations: 4 kB / 0.6154 GB, free: 5.195 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.4404, allocations: 1.344 MB / 0.6168 GB, free: 3.766 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.4404, allocations: 4 kB / 0.6168 GB, free: 3.762 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.4407, allocations: 59.91 kB / 0.6168 GB, free: 3.703 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007398/0.4414, allocations: 183.3 kB / 0.617 GB, free: 3.512 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.4415, allocations: 15.98 kB / 0.617 GB, free: 3.496 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003083/0.4445, allocations: 3.738 MB / 0.6207 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.4446, allocations: 7.969 kB / 0.6207 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.4458, allocations: 0.9134 MB / 0.6216 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/0.4461, allocations: 115.1 kB / 0.6217 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.4462, allocations: 19.94 kB / 0.6217 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.4465, allocations: 8 kB / 0.6217 GB, free: 14.35 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.767e-05/0.4466, allocations: 47.94 kB / 0.6217 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.4466, allocations: 19.94 kB / 0.6218 GB, free: 14.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.4478, allocations: 0.9625 MB / 0.6227 GB, free: 13.32 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4478, allocations: 0 / 0.6227 GB, free: 13.32 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002016/0.4499, allocations: 0.7046 MB / 0.6234 GB, free: 12.61 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00279/0.4527, allocations: 2.222 MB / 0.6256 GB, free: 10.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.4543, allocations: 0.8228 MB / 0.6264 GB, free: 9.508 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4543, allocations: 0 / 0.6264 GB, free: 9.508 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005174/0.4548, allocations: 394.3 kB / 0.6267 GB, free: 9.098 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.4558, allocations: 199.8 kB / 0.6269 GB, free: 8.906 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/0.4691, allocations: 10.47 MB / 0.6372 GB, free: 13.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007864/0.4699, allocations: 1.095 MB / 0.6382 GB, free: 12.28 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008496/0.4708, allocations: 314.4 kB / 0.6385 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006475/0.4714, allocations: 0.5383 MB / 0.6391 GB, free: 11.46 MB / 494.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4714, allocations: 0 / 0.6391 GB, free: 11.46 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07425/0.5457, allocations: 33.95 MB / 0.6722 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.39/24.93, allocations: 3.75 kB / 0.6722 GB, free: 9.68 MB / 0.5137 GB " [Timeout remaining time 635] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 27.47739089300012] Failed to read output from testmodel.py, exit status != 0: 25.062414312000328 25.076935441 24.685214219 Calling exit ...