Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.001292/0.001292, allocations: 103 kB / 16.45 MB, free: 6.5 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.001377/0.001377, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.406/1.406, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.1311/0.1311, allocations: 23.88 MB / 332.7 MB, free: 12.35 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.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",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.002097/0.002097, allocations: 75.88 kB / 466 MB, free: 10.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3283, allocations: 59.82 MB / 0.5135 GB, free: 8.875 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.StandardElectrochemicalCell2): time 0.04357/0.3719, allocations: 27.77 MB / 0.5407 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.024/0.3959, allocations: 18.27 MB / 0.5585 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001944/0.3978, allocations: 23.81 kB / 0.5585 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001794/0.3996, allocations: 475.3 kB / 0.559 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003341/0.403, allocations: 0.847 MB / 0.5598 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01023/0.4132, allocations: 2.819 MB / 0.5626 GB, free: 8.645 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003389/0.4166, allocations: 1.632 MB / 0.5642 GB, free: 7.168 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.4181, allocations: 0.7531 MB / 0.5649 GB, free: 6.566 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001299/0.4194, allocations: 0.7285 MB / 0.5656 GB, free: 5.906 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001491/0.4209, allocations: 0.8133 MB / 0.5664 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000441/0.4213, allocations: 148 kB / 0.5665 GB, free: 4.945 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006161/0.4275, allocations: 1.778 MB / 0.5683 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005245/0.428, allocations: 358.9 kB / 0.5686 GB, free: 2.812 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.4291, allocations: 0.7504 MB / 0.5694 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008064/0.4372, allocations: 3.576 MB / 0.5728 GB, free: 14.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4372, allocations: 4 kB / 0.5729 GB, free: 14.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4372, allocations: 0 / 0.5729 GB, free: 14.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7e-05/0.4373, allocations: 0 / 0.5729 GB, free: 14.46 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.004181/0.4415, allocations: 1.976 MB / 0.5748 GB, free: 12.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.4415, allocations: 12.03 kB / 0.5748 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003212/0.4418, allocations: 177.8 kB / 0.575 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001698/0.4435, allocations: 395.1 kB / 0.5753 GB, free: 11.85 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.4454, allocations: 0.9893 MB / 0.5763 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.4455, allocations: 149.9 kB / 0.5764 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002602/0.4458, allocations: 116 kB / 0.5766 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.4487, allocations: 1.649 MB / 0.5782 GB, free: 8.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/0.4487, allocations: 11.88 kB / 0.5782 GB, free: 8.809 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/0.4488, allocations: 48 kB / 0.5782 GB, free: 8.762 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.4489, allocations: 28 kB / 0.5783 GB, free: 8.734 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003302/0.4522, allocations: 2.116 MB / 0.5803 GB, free: 6.617 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008441/0.4606, allocations: 5.437 MB / 0.5856 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/0.462, allocations: 0.6976 MB / 0.5863 GB, free: 268 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006271/0.4626, allocations: 328.5 kB / 0.5866 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007843/0.4705, allocations: 5.059 MB / 0.5916 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.4705, allocations: 38.5 kB / 0.5916 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003418/0.4708, allocations: 87.19 kB / 0.5917 GB, free: 10.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.755e-06/0.4708, allocations: 0 / 0.5917 GB, free: 10.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001608/0.4724, allocations: 0.7428 MB / 0.5924 GB, free: 9.363 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.4725, allocations: 114.7 kB / 0.5925 GB, free: 9.227 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.4741, allocations: 1.199 MB / 0.5937 GB, free: 8.012 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.4741, allocations: 29.7 kB / 0.5937 GB, free: 7.977 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006177/0.4747, allocations: 0.8023 MB / 0.5945 GB, free: 7.164 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.4749, allocations: 146.9 kB / 0.5946 GB, free: 7.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003702/0.4752, allocations: 274.6 kB / 0.5949 GB, free: 6.746 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4754, allocations: 353.9 kB / 0.5952 GB, free: 6.395 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005468/0.4759, allocations: 322.5 kB / 0.5955 GB, free: 6.078 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.4771, allocations: 1.046 MB / 0.5966 GB, free: 4.664 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.4789, allocations: 1.399 MB / 0.5979 GB, free: 2.898 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/0.4789, allocations: 8 kB / 0.5979 GB, free: 2.891 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002495/0.4814, allocations: 1.441 MB / 0.5993 GB, free: 1.438 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.4814, allocations: 22.75 kB / 0.5994 GB, free: 1.418 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.531e-05/0.4815, allocations: 24 kB / 0.5994 GB, free: 1.395 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006697/0.4821, allocations: 157.3 kB / 0.5995 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.4833, allocations: 379.5 kB / 0.5999 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/0.4866, allocations: 4.073 MB / 0.6039 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008739/0.4875, allocations: 76.05 kB / 0.604 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.4877, allocations: 91.98 kB / 0.604 GB, free: 12.29 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * 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.0005327/0.4882, allocations: 317 kB / 0.6043 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002419/0.4884, allocations: 107.3 kB / 0.6044 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.4902, allocations: 0.853 MB / 0.6053 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4902, allocations: 4 kB / 0.6053 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.4902, allocations: 0 / 0.6053 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.4902, allocations: 0 / 0.6053 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.4925, allocations: 1.258 MB / 0.6065 GB, free: 9.621 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.4925, allocations: 4 kB / 0.6065 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000264/0.4927, allocations: 63.89 kB / 0.6066 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007484/0.4935, allocations: 171.4 kB / 0.6067 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.4935, allocations: 19.98 kB / 0.6068 GB, free: 9.355 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003254/0.4968, allocations: 3.943 MB / 0.6106 GB, free: 5.066 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.4968, allocations: 4 kB / 0.6106 GB, free: 5.062 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.4982, allocations: 0.8734 MB / 0.6115 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003495/0.4986, allocations: 172.4 kB / 0.6116 GB, free: 3.953 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/0.4988, allocations: 15.98 kB / 0.6116 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000453/0.4993, allocations: 8 kB / 0.6117 GB, free: 3.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.4994, allocations: 43.91 kB / 0.6117 GB, free: 3.887 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.4994, allocations: 19.98 kB / 0.6117 GB, free: 3.867 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001408/0.5008, allocations: 0.8849 MB / 0.6126 GB, free: 2.977 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5008, allocations: 0 / 0.6126 GB, free: 2.977 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002234/0.503, allocations: 0.6306 MB / 0.6132 GB, free: 2.344 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (27): * Single equations (assignments): 23 * 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.003395/0.5064, allocations: 2.047 MB / 0.6152 GB, free: 244 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.5083, allocations: 0.7666 MB / 0.6159 GB, free: 15.47 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5083, allocations: 4.938 kB / 0.6159 GB, free: 15.47 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005892/0.5089, allocations: 379.6 kB / 0.6163 GB, free: 15.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.51, allocations: 163.9 kB / 0.6165 GB, free: 14.92 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/0.5242, allocations: 9.644 MB / 0.6259 GB, free: 4.352 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008298/0.525, allocations: 1.063 MB / 0.6269 GB, free: 3.262 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000838/0.5259, allocations: 273.3 kB / 0.6272 GB, free: 3.012 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006532/0.5265, allocations: 495.2 kB / 0.6277 GB, free: 2.527 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5265, allocations: 0 / 0.6277 GB, free: 2.527 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07289/0.5994, allocations: 29.68 MB / 0.6566 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.6/22.2, allocations: 7.859 kB / 0.6566 GB, free: 5.055 MB / 0.4981 GB " [Timeout remaining time 638] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.83827367797494] Failed to read output from testmodel.py, exit status != 0: 22.312927908962592 22.334150962 21.892796779 Calling exit ...