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.001386/0.001386, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001518/0.001518, allocations: 218.7 kB / 23.03 MB, free: 4.922 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.144/0.144, allocations: 23.88 MB / 337.1 MB, free: 10.97 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="cs",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.00208/0.00208, allocations: 63.91 kB / 471.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3393, allocations: 59.86 MB / 0.5193 GB, free: 9.57 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.0733/0.4126, allocations: 27.33 MB / 0.546 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02786/0.4404, allocations: 19.02 MB / 0.5646 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.4421, allocations: 27.75 kB / 0.5646 GB, free: 11.01 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00194/0.444, allocations: 488.8 kB / 0.5651 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003565/0.4476, allocations: 0.9673 MB / 0.566 GB, free: 9.824 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01019/0.4578, allocations: 3.346 MB / 0.5693 GB, free: 6.695 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003464/0.4612, allocations: 1.798 MB / 0.571 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001561/0.4628, allocations: 0.7588 MB / 0.5718 GB, free: 4.109 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.4642, allocations: 0.8063 MB / 0.5725 GB, free: 3.301 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001648/0.4659, allocations: 0.899 MB / 0.5734 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005803/0.4664, allocations: 151.9 kB / 0.5736 GB, free: 2.25 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006307/0.4727, allocations: 2.001 MB / 0.5755 GB, free: 252 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007652/0.4735, allocations: 390.7 kB / 0.5759 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.4747, allocations: 0.6691 MB / 0.5766 GB, free: 15.19 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01045/0.4852, allocations: 4.054 MB / 0.5805 GB, free: 11.12 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.4852, allocations: 3.984 kB / 0.5805 GB, free: 11.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4852, allocations: 0 / 0.5805 GB, free: 11.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.595e-05/0.4853, allocations: 0 / 0.5805 GB, free: 11.12 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.004619/0.4899, allocations: 2.056 MB / 0.5825 GB, free: 9.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.4899, allocations: 15.97 kB / 0.5825 GB, free: 9.004 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.867e-05/0.49, allocations: 34.73 kB / 0.5826 GB, free: 8.969 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003297/0.4903, allocations: 190.3 kB / 0.5828 GB, free: 8.773 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002078/0.4924, allocations: 443.1 kB / 0.5832 GB, free: 8.34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.4947, allocations: 0.9958 MB / 0.5841 GB, free: 7.316 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/0.4949, allocations: 217.2 kB / 0.5844 GB, free: 7.078 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000346/0.4952, allocations: 124 kB / 0.5845 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003441/0.4987, allocations: 1.756 MB / 0.5862 GB, free: 5.129 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-05/0.4987, allocations: 7.938 kB / 0.5862 GB, free: 5.121 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001761/0.4989, allocations: 52 kB / 0.5862 GB, free: 5.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.4989, allocations: 32 kB / 0.5863 GB, free: 5.039 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004041/0.503, allocations: 2.331 MB / 0.5886 GB, free: 2.703 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009695/0.5127, allocations: 4.988 MB / 0.5934 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.5143, allocations: 0.69 MB / 0.5941 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006662/0.5149, allocations: 344.3 kB / 0.5944 GB, free: 12.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007915/0.5228, allocations: 2.862 MB / 0.5972 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/0.5229, allocations: 42.5 kB / 0.5973 GB, free: 9.594 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 3.256e-06/0.5229, allocations: 4 kB / 0.5973 GB, free: 9.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001892/0.5248, allocations: 0.6582 MB / 0.5979 GB, free: 8.918 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.615e-05/0.5249, allocations: 106.8 kB / 0.598 GB, free: 8.789 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.5266, allocations: 1.299 MB / 0.5993 GB, free: 7.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.493e-05/0.5267, allocations: 33.7 kB / 0.5993 GB, free: 7.441 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006771/0.5274, allocations: 0.8645 MB / 0.6002 GB, free: 6.566 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.5275, allocations: 150.8 kB / 0.6003 GB, free: 6.418 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003978/0.5279, allocations: 303.6 kB / 0.6006 GB, free: 6.117 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.5281, allocations: 353.9 kB / 0.6009 GB, free: 5.766 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005749/0.5287, allocations: 343.8 kB / 0.6013 GB, free: 5.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.53, allocations: 1.152 MB / 0.6024 GB, free: 3.867 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002011/0.532, allocations: 1.537 MB / 0.6039 GB, free: 1.922 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.798e-05/0.532, allocations: 8 kB / 0.6039 GB, free: 1.914 MB / 446.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002806/0.5348, allocations: 1.571 MB / 0.6054 GB, free: 340 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.881e-05/0.5348, allocations: 23.92 kB / 0.6054 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.961e-05/0.5349, allocations: 32.12 kB / 0.6055 GB, free: 284 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006742/0.5355, allocations: 149.4 kB / 0.6056 GB, free: 128 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.5369, allocations: 395.4 kB / 0.606 GB, free: 15.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.5404, allocations: 3.881 MB / 0.6098 GB, free: 11.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.5415, allocations: 186.9 kB / 0.61 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/0.5417, allocations: 104 kB / 0.6101 GB, free: 11.29 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.0005624/0.5423, allocations: 335.4 kB / 0.6104 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002597/0.5425, allocations: 119.2 kB / 0.6105 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.5445, allocations: 0.9473 MB / 0.6114 GB, free: 9.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.5445, allocations: 4 kB / 0.6114 GB, free: 9.836 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.5445, allocations: 4 kB / 0.6114 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.5445, allocations: 3.984 kB / 0.6114 GB, free: 9.828 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.5469, allocations: 1.279 MB / 0.6127 GB, free: 8.461 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.5469, allocations: 4 kB / 0.6127 GB, free: 8.457 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.5472, allocations: 59.91 kB / 0.6127 GB, free: 8.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007817/0.548, allocations: 175.6 kB / 0.6129 GB, free: 8.215 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.548, allocations: 12 kB / 0.6129 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003197/0.5512, allocations: 3.734 MB / 0.6166 GB, free: 4.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.5512, allocations: 4 kB / 0.6166 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.5527, allocations: 0.9135 MB / 0.6175 GB, free: 3.207 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.553, allocations: 111.1 kB / 0.6176 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/0.5532, allocations: 15.89 kB / 0.6176 GB, free: 3.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/0.5536, allocations: 8 kB / 0.6176 GB, free: 3.074 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.5537, allocations: 51.81 kB / 0.6176 GB, free: 3.023 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.5537, allocations: 16 kB / 0.6177 GB, free: 3.008 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001402/0.5551, allocations: 0.9664 MB / 0.6186 GB, free: 2.039 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5551, allocations: 0 / 0.6186 GB, free: 2.039 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00228/0.5574, allocations: 0.7086 MB / 0.6193 GB, free: 1.328 MB / 462.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.00337/0.5608, allocations: 2.225 MB / 0.6215 GB, free: 15.04 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.5627, allocations: 0.8191 MB / 0.6223 GB, free: 14.23 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.5627, allocations: 384 / 0.6223 GB, free: 14.23 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005887/0.5632, allocations: 393 kB / 0.6226 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.5646, allocations: 191.6 kB / 0.6228 GB, free: 13.63 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01589/0.5804, allocations: 10.47 MB / 0.633 GB, free: 2.133 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.581, allocations: 0.5074 MB / 0.6335 GB, free: 1.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000998/0.582, allocations: 308.1 kB / 0.6338 GB, free: 1.305 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007576/0.5828, allocations: 0.5422 MB / 0.6344 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5828, allocations: 0 / 0.6344 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07581/0.6586, allocations: 34.15 MB / 0.6677 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.19/26.85, allocations: 12.05 kB / 0.6677 GB, free: 14.9 MB / 0.5137 GB " [Timeout remaining time 633] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 29.75044692098163] Failed to read output from testmodel.py, exit status != 0: 27.049813083955087 27.075176614 26.585059135 Calling exit ...