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.001798/0.001798, allocations: 113.8 kB / 19.73 MB, free: 2.242 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.001752/0.001752, allocations: 219 kB / 23.04 MB, free: 5.078 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.1713/0.1713, allocations: 23.88 MB / 337.1 MB, free: 11.14 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_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.001962/0.001962, allocations: 59.91 kB / 472 MB, free: 7.625 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3585, allocations: 59.87 MB / 0.5194 GB, free: 9.555 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.04423/0.4028, allocations: 28.23 MB / 0.547 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02938/0.4322, allocations: 21.76 MB / 0.5682 GB, free: 7.578 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.4338, allocations: 23.81 kB / 0.5682 GB, free: 7.555 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001676/0.4355, allocations: 0.5323 MB / 0.5688 GB, free: 7.133 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003438/0.439, allocations: 1.014 MB / 0.5698 GB, free: 6.266 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01162/0.4506, allocations: 3.341 MB / 0.573 GB, free: 3.145 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004529/0.4551, allocations: 1.813 MB / 0.5748 GB, free: 1.324 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001368/0.4565, allocations: 0.751 MB / 0.5755 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.4576, allocations: 0.8064 MB / 0.5763 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001303/0.4589, allocations: 0.899 MB / 0.5772 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002301/0.4592, allocations: 148 kB / 0.5773 GB, free: 14.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008058/0.4672, allocations: 2.087 MB / 0.5794 GB, free: 12.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006361/0.4678, allocations: 382.8 kB / 0.5797 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.469, allocations: 0.8087 MB / 0.5805 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.4797, allocations: 4.058 MB / 0.5845 GB, free: 7.344 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4797, allocations: 0 / 0.5845 GB, free: 7.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4797, allocations: 0 / 0.5845 GB, free: 7.344 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.598e-05/0.4797, allocations: 3.938 kB / 0.5845 GB, free: 7.34 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.004206/0.4839, allocations: 2.08 MB / 0.5865 GB, free: 5.219 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.484, allocations: 12.03 kB / 0.5865 GB, free: 5.207 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.119e-05/0.4841, allocations: 30.73 kB / 0.5866 GB, free: 5.176 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002679/0.4843, allocations: 190.3 kB / 0.5867 GB, free: 4.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001956/0.4863, allocations: 443.1 kB / 0.5872 GB, free: 4.547 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001989/0.4883, allocations: 0.992 MB / 0.5881 GB, free: 3.527 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002106/0.4885, allocations: 209.3 kB / 0.5883 GB, free: 3.297 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002505/0.4887, allocations: 124 kB / 0.5884 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003261/0.492, allocations: 1.764 MB / 0.5902 GB, free: 1.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.548e-05/0.492, allocations: 4 kB / 0.5902 GB, free: 1.336 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/0.4922, allocations: 52 kB / 0.5902 GB, free: 1.285 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.923e-05/0.4922, allocations: 32 kB / 0.5903 GB, free: 1.254 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004385/0.4966, allocations: 2.334 MB / 0.5925 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009718/0.5063, allocations: 5.532 MB / 0.5979 GB, free: 9.195 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.5078, allocations: 0.7133 MB / 0.5986 GB, free: 8.457 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006199/0.5084, allocations: 332.3 kB / 0.599 GB, free: 8.125 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007285/0.5157, allocations: 2.975 MB / 0.6019 GB, free: 5.125 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.5157, allocations: 46.5 kB / 0.6019 GB, free: 5.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.084e-06/0.5157, allocations: 0 / 0.6019 GB, free: 5.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001647/0.5174, allocations: 0.6543 MB / 0.6025 GB, free: 4.402 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/0.5175, allocations: 118.7 kB / 0.6027 GB, free: 4.262 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/0.5193, allocations: 1.299 MB / 0.6039 GB, free: 2.953 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.5193, allocations: 33.95 kB / 0.604 GB, free: 2.914 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006948/0.52, allocations: 0.8607 MB / 0.6048 GB, free: 2.043 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.5202, allocations: 154.8 kB / 0.6049 GB, free: 1.891 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003898/0.5205, allocations: 299.3 kB / 0.6052 GB, free: 1.594 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.5207, allocations: 353.9 kB / 0.6056 GB, free: 1.242 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005617/0.5213, allocations: 339.8 kB / 0.6059 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.5226, allocations: 1.156 MB / 0.607 GB, free: 15.34 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.5246, allocations: 1.537 MB / 0.6085 GB, free: 13.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.511e-05/0.5247, allocations: 8 kB / 0.6085 GB, free: 13.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002808/0.5275, allocations: 1.567 MB / 0.6101 GB, free: 11.81 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.5275, allocations: 23.94 kB / 0.6101 GB, free: 11.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.481e-05/0.5275, allocations: 32.12 kB / 0.6101 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006725/0.5282, allocations: 149.4 kB / 0.6103 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.5294, allocations: 399.3 kB / 0.6106 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.5329, allocations: 3.878 MB / 0.6144 GB, free: 7.051 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.5343, allocations: 190.6 kB / 0.6146 GB, free: 6.863 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/0.5344, allocations: 99.98 kB / 0.6147 GB, free: 6.766 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.0006054/0.535, allocations: 341.1 kB / 0.615 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.5353, allocations: 119.2 kB / 0.6151 GB, free: 6.305 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.5372, allocations: 0.9362 MB / 0.616 GB, free: 5.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.5372, allocations: 7.984 kB / 0.6161 GB, free: 5.312 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5372, allocations: 3.938 kB / 0.6161 GB, free: 5.309 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5372, allocations: 0 / 0.6161 GB, free: 5.309 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.5397, allocations: 1.348 MB / 0.6174 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.5397, allocations: 4 kB / 0.6174 GB, free: 3.871 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.54, allocations: 51.92 kB / 0.6174 GB, free: 3.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007716/0.5407, allocations: 175.6 kB / 0.6176 GB, free: 3.637 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.5408, allocations: 16 kB / 0.6176 GB, free: 3.621 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003291/0.5441, allocations: 3.742 MB / 0.6213 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.5441, allocations: 8 kB / 0.6213 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.5457, allocations: 0.9055 MB / 0.6222 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003507/0.5461, allocations: 115.1 kB / 0.6223 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.5462, allocations: 19.89 kB / 0.6223 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.5466, allocations: 12 kB / 0.6223 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.333e-05/0.5467, allocations: 47.83 kB / 0.6223 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.869e-05/0.5468, allocations: 19.98 kB / 0.6224 GB, free: 14.41 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.5481, allocations: 0.9625 MB / 0.6233 GB, free: 13.45 MB / 478.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5481, allocations: 0 / 0.6233 GB, free: 13.45 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002411/0.5505, allocations: 0.7046 MB / 0.624 GB, free: 12.74 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.00369/0.5542, allocations: 2.218 MB / 0.6262 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002138/0.5564, allocations: 0.831 MB / 0.627 GB, free: 9.629 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5564, allocations: 0 / 0.627 GB, free: 9.629 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006047/0.557, allocations: 389 kB / 0.6273 GB, free: 9.223 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.5583, allocations: 192.5 kB / 0.6275 GB, free: 9.039 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01564/0.5739, allocations: 10.48 MB / 0.6378 GB, free: 13.54 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008594/0.5748, allocations: 1.095 MB / 0.6388 GB, free: 12.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001009/0.5758, allocations: 307.1 kB / 0.6391 GB, free: 12.13 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000744/0.5765, allocations: 0.5383 MB / 0.6396 GB, free: 11.59 MB / 494.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5765, allocations: 0 / 0.6396 GB, free: 11.59 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07674/0.6533, allocations: 33.98 MB / 0.6728 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.61/26.26, allocations: 12 kB / 0.6728 GB, free: 9.773 MB / 0.5137 GB " [Timeout remaining time 634] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 29.253869196982123] Failed to read output from testmodel.py, exit status != 0: 26.451942094950937 26.467136876 25.984195915 Calling exit ...