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.001341/0.001341, allocations: 97.31 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.001775/0.001775, allocations: 219.5 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.464/1.464, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1484/0.1484, allocations: 23.91 MB / 337.1 MB, free: 11.06 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.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",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.003333/0.003333, allocations: 67.91 kB / 471.9 MB, free: 7.496 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3456, allocations: 59.86 MB / 0.5193 GB, free: 9.504 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.07487/0.4205, allocations: 26.82 MB / 0.5455 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0228/0.4433, allocations: 16.02 MB / 0.5612 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.4446, allocations: 23.81 kB / 0.5612 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001341/0.4459, allocations: 435.3 kB / 0.5616 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003058/0.449, allocations: 0.7984 MB / 0.5624 GB, free: 13.22 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009009/0.458, allocations: 2.851 MB / 0.5652 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003522/0.4615, allocations: 1.641 MB / 0.5668 GB, free: 9.305 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001343/0.4628, allocations: 0.7351 MB / 0.5675 GB, free: 8.547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009939/0.4638, allocations: 0.7245 MB / 0.5682 GB, free: 7.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001287/0.4651, allocations: 0.8211 MB / 0.569 GB, free: 6.996 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002978/0.4654, allocations: 140 kB / 0.5691 GB, free: 6.859 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005246/0.4707, allocations: 1.704 MB / 0.5708 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006968/0.4713, allocations: 370.8 kB / 0.5712 GB, free: 4.789 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.4724, allocations: 0.6185 MB / 0.5718 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00873/0.4811, allocations: 3.575 MB / 0.5753 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4811, allocations: 0 / 0.5753 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4811, allocations: 4 kB / 0.5753 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.4812, allocations: 0 / 0.5753 GB, free: 0.5742 MB / 414.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.00362/0.4848, allocations: 1.889 MB / 0.5771 GB, free: 14.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.4848, allocations: 12.03 kB / 0.5771 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.616e-05/0.4849, allocations: 30.58 kB / 0.5771 GB, free: 14.6 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002228/0.4851, allocations: 181.8 kB / 0.5773 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001731/0.4868, allocations: 387.3 kB / 0.5777 GB, free: 14.04 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.4887, allocations: 0.9159 MB / 0.5786 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.4889, allocations: 205.1 kB / 0.5788 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002163/0.4891, allocations: 120 kB / 0.5789 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002759/0.4918, allocations: 1.664 MB / 0.5805 GB, free: 11.01 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.681e-05/0.4919, allocations: 4 kB / 0.5805 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001446/0.492, allocations: 48 kB / 0.5806 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.905e-05/0.492, allocations: 28 kB / 0.5806 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003331/0.4954, allocations: 2.131 MB / 0.5827 GB, free: 8.797 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008274/0.5036, allocations: 4.852 MB / 0.5874 GB, free: 3.816 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.505, allocations: 0.6899 MB / 0.5881 GB, free: 3.102 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000596/0.5056, allocations: 332.3 kB / 0.5884 GB, free: 2.77 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006543/0.5122, allocations: 2.66 MB / 0.591 GB, free: 84 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.5122, allocations: 38.56 kB / 0.591 GB, free: 36 kB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003544/0.5125, allocations: 79.41 kB / 0.5911 GB, free: 15.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.314e-06/0.5126, allocations: 0 / 0.5911 GB, free: 15.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001434/0.514, allocations: 0.6116 MB / 0.5917 GB, free: 15.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/0.5141, allocations: 110.8 kB / 0.5918 GB, free: 15.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.5156, allocations: 1.207 MB / 0.593 GB, free: 13.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.5156, allocations: 29.7 kB / 0.593 GB, free: 13.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006951/0.5163, allocations: 0.8064 MB / 0.5938 GB, free: 13.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.5165, allocations: 146.9 kB / 0.594 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003919/0.5168, allocations: 266.7 kB / 0.5942 GB, free: 12.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.517, allocations: 353.9 kB / 0.5945 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005526/0.5176, allocations: 326.5 kB / 0.5949 GB, free: 12.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.5189, allocations: 1.054 MB / 0.5959 GB, free: 10.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.5207, allocations: 1.403 MB / 0.5973 GB, free: 8.855 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/0.5207, allocations: 8 kB / 0.5973 GB, free: 8.848 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002535/0.5233, allocations: 1.456 MB / 0.5987 GB, free: 7.379 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.5233, allocations: 27.86 kB / 0.5987 GB, free: 7.352 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.172e-05/0.5233, allocations: 27.94 kB / 0.5987 GB, free: 7.324 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000698/0.524, allocations: 146.1 kB / 0.5989 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.5252, allocations: 375.4 kB / 0.5992 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/0.5287, allocations: 3.866 MB / 0.603 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009688/0.5297, allocations: 84.27 kB / 0.6031 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/0.5298, allocations: 91.98 kB / 0.6032 GB, free: 2.484 MB / 446.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.0004888/0.5303, allocations: 305.2 kB / 0.6035 GB, free: 2.176 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.5306, allocations: 111.3 kB / 0.6036 GB, free: 2.066 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.5323, allocations: 0.852 MB / 0.6044 GB, free: 1.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5323, allocations: 4 kB / 0.6044 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5323, allocations: 4 kB / 0.6044 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.5323, allocations: 0 / 0.6044 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.5344, allocations: 1.179 MB / 0.6056 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5344, allocations: 0 / 0.6056 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.5347, allocations: 63.91 kB / 0.6056 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007549/0.5355, allocations: 175.2 kB / 0.6058 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.5355, allocations: 12 kB / 0.6058 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003092/0.5386, allocations: 3.744 MB / 0.6095 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5386, allocations: 0 / 0.6095 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.54, allocations: 0.8676 MB / 0.6103 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002423/0.5403, allocations: 99.25 kB / 0.6104 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.5404, allocations: 11.98 kB / 0.6104 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003811/0.5408, allocations: 8 kB / 0.6104 GB, free: 10.58 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.802e-05/0.5409, allocations: 39.89 kB / 0.6105 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-05/0.5409, allocations: 12 kB / 0.6105 GB, free: 10.53 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001155/0.5421, allocations: 0.9005 MB / 0.6114 GB, free: 9.625 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5421, allocations: 0 / 0.6114 GB, free: 9.625 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001945/0.544, allocations: 0.6267 MB / 0.612 GB, free: 8.996 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.002992/0.547, allocations: 2.05 MB / 0.614 GB, free: 6.887 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.5487, allocations: 0.7629 MB / 0.6147 GB, free: 6.129 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.5487, allocations: 3.938 kB / 0.6147 GB, free: 6.125 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005368/0.5493, allocations: 390 kB / 0.6151 GB, free: 5.719 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.5504, allocations: 186 kB / 0.6153 GB, free: 5.543 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.5637, allocations: 9.669 MB / 0.6247 GB, free: 10.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.5642, allocations: 476.8 kB / 0.6252 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008523/0.5651, allocations: 286.9 kB / 0.6254 GB, free: 10.19 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006384/0.5657, allocations: 499.2 kB / 0.6259 GB, free: 9.703 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5657, allocations: 0 / 0.6259 GB, free: 9.703 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0695/0.6352, allocations: 30.63 MB / 0.6558 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.41/24.05, allocations: 11.14 kB / 0.6558 GB, free: 11.35 MB / 0.4981 GB " [Timeout remaining time 636] (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: 26.956371292937547] Failed to read output from testmodel.py, exit status != 0: 24.247089866083115 24.270104058 23.784050711 Calling exit ...