Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001881/0.001881, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.00232/0.00232, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.473/1.473, allocations: 230.6 MB / 252.8 MB, free: 9 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.135/0.135, allocations: 23.84 MB / 332.7 MB, free: 12.38 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_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.001984/0.001984, allocations: 63.91 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3591, allocations: 59.82 MB / 0.5135 GB, free: 8.875 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.0528/0.4119, allocations: 28.19 MB / 0.541 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02946/0.4414, allocations: 21.71 MB / 0.5622 GB, free: 8.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.4431, allocations: 27.75 kB / 0.5622 GB, free: 8.562 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.4448, allocations: 0.5327 MB / 0.5627 GB, free: 8.141 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003702/0.4485, allocations: 1.001 MB / 0.5637 GB, free: 7.289 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01005/0.4585, allocations: 3.313 MB / 0.567 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003233/0.4618, allocations: 1.813 MB / 0.5687 GB, free: 2.699 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001156/0.4629, allocations: 0.7779 MB / 0.5695 GB, free: 1.898 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.464, allocations: 0.7986 MB / 0.5703 GB, free: 1.098 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.4652, allocations: 0.9029 MB / 0.5711 GB, free: 196 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002303/0.4654, allocations: 148 kB / 0.5713 GB, free: 48 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006775/0.4722, allocations: 2.083 MB / 0.5733 GB, free: 13.96 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005157/0.4727, allocations: 382.8 kB / 0.5737 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009984/0.4737, allocations: 0.8088 MB / 0.5745 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009498/0.4832, allocations: 4.066 MB / 0.5784 GB, free: 8.691 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4832, allocations: 0 / 0.5784 GB, free: 8.691 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4832, allocations: 0 / 0.5784 GB, free: 8.691 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.076e-05/0.4832, allocations: 0 / 0.5784 GB, free: 8.691 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.003741/0.487, allocations: 2.143 MB / 0.5805 GB, free: 6.488 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.487, allocations: 8.031 kB / 0.5805 GB, free: 6.48 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002458/0.4873, allocations: 190.3 kB / 0.5807 GB, free: 6.285 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001918/0.4892, allocations: 447.1 kB / 0.5812 GB, free: 5.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/0.491, allocations: 1.06 MB / 0.5822 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.4912, allocations: 162.1 kB / 0.5823 GB, free: 4.574 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000225/0.4914, allocations: 120 kB / 0.5825 GB, free: 4.457 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002982/0.4944, allocations: 1.76 MB / 0.5842 GB, free: 2.625 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.4945, allocations: 3.938 kB / 0.5842 GB, free: 2.621 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.4946, allocations: 52 kB / 0.5842 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.964e-05/0.4947, allocations: 32 kB / 0.5843 GB, free: 2.539 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003847/0.4985, allocations: 2.315 MB / 0.5865 GB, free: 224 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008861/0.5074, allocations: 5.588 MB / 0.592 GB, free: 10.44 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.5089, allocations: 0.7025 MB / 0.5927 GB, free: 9.711 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006432/0.5095, allocations: 336.3 kB / 0.593 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009305/0.5188, allocations: 5.724 MB / 0.5986 GB, free: 2.957 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.5189, allocations: 38.56 kB / 0.5986 GB, free: 2.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.184e-06/0.5189, allocations: 0 / 0.5986 GB, free: 2.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001812/0.5207, allocations: 0.8057 MB / 0.5994 GB, free: 2.055 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.5208, allocations: 107.1 kB / 0.5995 GB, free: 1.926 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.5225, allocations: 1.291 MB / 0.6008 GB, free: 0.625 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.5225, allocations: 37.7 kB / 0.6008 GB, free: 0.582 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006896/0.5232, allocations: 0.8607 MB / 0.6016 GB, free: 15.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.5234, allocations: 154.8 kB / 0.6018 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003945/0.5238, allocations: 295.3 kB / 0.6021 GB, free: 15.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.524, allocations: 357.9 kB / 0.6024 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005815/0.5245, allocations: 331.8 kB / 0.6027 GB, free: 14.58 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.5259, allocations: 1.163 MB / 0.6039 GB, free: 13.01 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002013/0.5279, allocations: 1.526 MB / 0.6054 GB, free: 11.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.501e-05/0.5279, allocations: 8 kB / 0.6054 GB, free: 11.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002752/0.5306, allocations: 1.552 MB / 0.6069 GB, free: 9.504 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.445e-05/0.5307, allocations: 23.92 kB / 0.6069 GB, free: 9.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.643e-05/0.5307, allocations: 32 kB / 0.6069 GB, free: 9.449 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006463/0.5314, allocations: 153.4 kB / 0.6071 GB, free: 9.293 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.5326, allocations: 395.5 kB / 0.6075 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003572/0.5361, allocations: 4.077 MB / 0.6114 GB, free: 4.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.5372, allocations: 198.7 kB / 0.6116 GB, free: 4.293 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.5374, allocations: 99.98 kB / 0.6117 GB, free: 4.195 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.0005795/0.5379, allocations: 329.1 kB / 0.612 GB, free: 3.863 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.5382, allocations: 119.2 kB / 0.6121 GB, free: 3.746 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/0.5402, allocations: 0.941 MB / 0.6131 GB, free: 2.762 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.5402, allocations: 4 kB / 0.6131 GB, free: 2.758 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.5402, allocations: 0 / 0.6131 GB, free: 2.758 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.5403, allocations: 4 kB / 0.6131 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.5426, allocations: 1.373 MB / 0.6144 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.5427, allocations: 0 / 0.6144 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.5429, allocations: 59.97 kB / 0.6145 GB, free: 1.227 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007818/0.5437, allocations: 171.5 kB / 0.6146 GB, free: 1.047 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/0.5437, allocations: 16 kB / 0.6147 GB, free: 1.031 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003475/0.5472, allocations: 3.959 MB / 0.6185 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.5472, allocations: 4.031 kB / 0.6185 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.5488, allocations: 0.9174 MB / 0.6194 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.549, allocations: 180.3 kB / 0.6196 GB, free: 11.56 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.5492, allocations: 23.89 kB / 0.6196 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.5496, allocations: 12.06 kB / 0.6196 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.457e-05/0.5497, allocations: 39.98 kB / 0.6197 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-05/0.5497, allocations: 23.92 kB / 0.6197 GB, free: 11.46 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001388/0.5511, allocations: 0.9547 MB / 0.6206 GB, free: 10.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5511, allocations: 0 / 0.6206 GB, free: 10.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002283/0.5534, allocations: 0.7045 MB / 0.6213 GB, free: 9.797 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.003253/0.5566, allocations: 2.212 MB / 0.6235 GB, free: 7.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.5586, allocations: 0.8216 MB / 0.6243 GB, free: 6.703 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5586, allocations: 0 / 0.6243 GB, free: 6.703 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005972/0.5592, allocations: 394.6 kB / 0.6246 GB, free: 6.293 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.5604, allocations: 200.8 kB / 0.6248 GB, free: 6.098 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/0.5752, allocations: 10.43 MB / 0.635 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007743/0.576, allocations: 1.091 MB / 0.6361 GB, free: 9.508 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000907/0.5769, allocations: 316.9 kB / 0.6364 GB, free: 9.219 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000712/0.5776, allocations: 0.5383 MB / 0.6369 GB, free: 8.68 MB / 494.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5776, allocations: 0 / 0.6369 GB, free: 8.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/0.6874, allocations: 33.09 MB / 0.6692 GB, free: 7.781 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.67/25.36, allocations: 10.12 kB / 0.6692 GB, free: 7.773 MB / 0.5137 GB " [Timeout remaining time 635] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.17863025701081] Failed to read output from testmodel.py, exit status != 0: 25.473011599999154 25.496132588 25.008606077 Calling exit ...