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.001666/0.001666, allocations: 98.33 kB / 19.73 MB, free: 2.23 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.002218/0.002218, allocations: 213.5 kB / 23.04 MB, free: 5.074 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.949 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.161/0.161, allocations: 23.86 MB / 337.1 MB, free: 11.15 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.002013/0.002013, allocations: 66.72 kB / 472 MB, free: 7.645 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3193, allocations: 59.85 MB / 0.5193 GB, free: 9.629 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.04332/0.3626, allocations: 28.25 MB / 0.5469 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02921/0.3919, allocations: 21.76 MB / 0.5682 GB, free: 7.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00139/0.3932, allocations: 23.81 kB / 0.5682 GB, free: 7.566 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.395, allocations: 0.5323 MB / 0.5687 GB, free: 7.145 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003782/0.3988, allocations: 1.007 MB / 0.5697 GB, free: 6.285 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009723/0.4085, allocations: 3.35 MB / 0.573 GB, free: 3.156 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003133/0.4116, allocations: 1.809 MB / 0.5747 GB, free: 1.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.4128, allocations: 0.751 MB / 0.5755 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.4139, allocations: 0.8064 MB / 0.5763 GB, free: 15.76 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001413/0.4153, allocations: 0.8951 MB / 0.5771 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002947/0.4156, allocations: 148 kB / 0.5773 GB, free: 14.71 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006624/0.4223, allocations: 2.087 MB / 0.5793 GB, free: 12.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006398/0.4229, allocations: 382.8 kB / 0.5797 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.424, allocations: 0.8088 MB / 0.5805 GB, free: 11.44 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009786/0.4338, allocations: 4.07 MB / 0.5844 GB, free: 7.352 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4338, allocations: 0 / 0.5844 GB, free: 7.352 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4338, allocations: 0 / 0.5844 GB, free: 7.352 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.43e-05/0.4338, allocations: 0 / 0.5844 GB, free: 7.352 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.004926/0.4388, allocations: 2.072 MB / 0.5865 GB, free: 5.238 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.4388, allocations: 8.031 kB / 0.5865 GB, free: 5.23 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.03e-05/0.4389, allocations: 38.73 kB / 0.5865 GB, free: 5.191 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002726/0.4392, allocations: 186.3 kB / 0.5867 GB, free: 5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002127/0.4413, allocations: 443.1 kB / 0.5871 GB, free: 4.566 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002863/0.4441, allocations: 0.9997 MB / 0.5881 GB, free: 3.539 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/0.4445, allocations: 205.3 kB / 0.5883 GB, free: 3.312 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005022/0.445, allocations: 128 kB / 0.5884 GB, free: 3.188 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004202/0.4492, allocations: 1.76 MB / 0.5901 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.4492, allocations: 0 / 0.5901 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001526/0.4493, allocations: 52 kB / 0.5902 GB, free: 1.305 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.545e-05/0.4494, allocations: 32 kB / 0.5902 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004474/0.4539, allocations: 2.334 MB / 0.5925 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/0.4639, allocations: 5.536 MB / 0.5979 GB, free: 9.211 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.4655, allocations: 0.7009 MB / 0.5986 GB, free: 8.488 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006539/0.4661, allocations: 340.3 kB / 0.5989 GB, free: 8.148 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007784/0.4739, allocations: 2.979 MB / 0.6018 GB, free: 5.145 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.4739, allocations: 46.44 kB / 0.6019 GB, free: 5.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.875e-06/0.4739, allocations: 0 / 0.6019 GB, free: 5.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001749/0.4757, allocations: 0.6545 MB / 0.6025 GB, free: 4.422 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.447e-05/0.4758, allocations: 110.8 kB / 0.6026 GB, free: 4.289 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.4776, allocations: 1.303 MB / 0.6039 GB, free: 2.977 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.45e-05/0.4776, allocations: 33.7 kB / 0.6039 GB, free: 2.938 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007064/0.4783, allocations: 0.8607 MB / 0.6047 GB, free: 2.066 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.4785, allocations: 154.8 kB / 0.6049 GB, free: 1.914 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000414/0.4789, allocations: 291.3 kB / 0.6052 GB, free: 1.625 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.4791, allocations: 362 kB / 0.6055 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.4797, allocations: 343.8 kB / 0.6058 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.4811, allocations: 1.152 MB / 0.607 GB, free: 15.37 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/0.4832, allocations: 1.537 MB / 0.6085 GB, free: 13.42 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.4832, allocations: 12 kB / 0.6085 GB, free: 13.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002679/0.4859, allocations: 1.559 MB / 0.61 GB, free: 11.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.486, allocations: 19.94 kB / 0.61 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.543e-05/0.486, allocations: 32 kB / 0.6101 GB, free: 11.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/0.4867, allocations: 157.8 kB / 0.6102 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.4878, allocations: 399.3 kB / 0.6106 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/0.4913, allocations: 3.874 MB / 0.6144 GB, free: 7.078 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.4923, allocations: 198.8 kB / 0.6146 GB, free: 6.883 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/0.4925, allocations: 104 kB / 0.6147 GB, free: 6.781 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.0005591/0.4931, allocations: 321.1 kB / 0.615 GB, free: 6.457 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002358/0.4933, allocations: 119.2 kB / 0.6151 GB, free: 6.34 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/0.4952, allocations: 0.9448 MB / 0.616 GB, free: 5.344 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.4953, allocations: 4 kB / 0.616 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.4953, allocations: 4 kB / 0.616 GB, free: 5.336 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4953, allocations: 3.984 kB / 0.616 GB, free: 5.332 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002551/0.4978, allocations: 1.341 MB / 0.6173 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.4978, allocations: 4 kB / 0.6173 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.4981, allocations: 64.19 kB / 0.6174 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007788/0.4989, allocations: 171.3 kB / 0.6176 GB, free: 3.656 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.4989, allocations: 12 kB / 0.6176 GB, free: 3.645 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003347/0.5022, allocations: 3.753 MB / 0.6212 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5023, allocations: 192 / 0.6212 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.5038, allocations: 0.9093 MB / 0.6221 GB, free: 14.64 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.5041, allocations: 119.1 kB / 0.6222 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.5043, allocations: 19.88 kB / 0.6222 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003981/0.5047, allocations: 8 kB / 0.6223 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.5048, allocations: 39.83 kB / 0.6223 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.5048, allocations: 20 kB / 0.6223 GB, free: 14.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001285/0.5061, allocations: 0.9703 MB / 0.6233 GB, free: 13.46 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5061, allocations: 4.062 kB / 0.6233 GB, free: 13.46 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002199/0.5083, allocations: 0.7007 MB / 0.6239 GB, free: 12.75 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.003312/0.5116, allocations: 2.217 MB / 0.6261 GB, free: 10.47 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.5135, allocations: 0.8271 MB / 0.6269 GB, free: 9.652 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5135, allocations: 0 / 0.6269 GB, free: 9.652 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005704/0.5141, allocations: 393.9 kB / 0.6273 GB, free: 9.242 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.5153, allocations: 189 kB / 0.6275 GB, free: 9.059 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/0.5304, allocations: 10.47 MB / 0.6377 GB, free: 13.55 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008456/0.5313, allocations: 1.095 MB / 0.6388 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001071/0.5324, allocations: 318.3 kB / 0.6391 GB, free: 12.14 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007747/0.5331, allocations: 0.5344 MB / 0.6396 GB, free: 11.61 MB / 494.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5331, allocations: 0 / 0.6396 GB, free: 11.61 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08707/0.6202, allocations: 33.98 MB / 0.6728 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.79/26.41, allocations: 19.41 kB / 0.6728 GB, free: 9.77 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.38392082194332] Failed to read output from testmodel.py, exit status != 0: 26.605748101021163 26.632018025 26.193141135 Calling exit ...