Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.001172/0.001172, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.001031/0.001031, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 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 0.9059/0.9059, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.09132/0.09132, allocations: 17.38 MB / 276.6 MB, free: 11.84 MB / 266.7 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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 411.5 MB, free: 420 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.155e-05/1.315e-05, allocations: 2.281 kB / 411.5 MB, free: 416 kB / 378.7 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.0251/0.02511, allocations: 30.08 MB / 441.5 MB, free: 2.375 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1723/0.1974, allocations: 21.98 MB / 463.5 MB, free: 50.92 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.1985, allocations: 26.75 kB / 463.5 MB, free: 50.91 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.1996, allocations: 0.5726 MB / 464.1 MB, free: 50.6 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003303/0.2029, allocations: 1.901 MB / 466 MB, free: 49.45 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006451/0.2093, allocations: 3.586 MB / 469.6 MB, free: 47.34 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002671/0.212, allocations: 2.793 MB / 472.4 MB, free: 45.91 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.2133, allocations: 1.417 MB / 473.8 MB, free: 45.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.2146, allocations: 1.812 MB / 475.6 MB, free: 44.51 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009227/0.2155, allocations: 1.128 MB / 476.8 MB, free: 44.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002359/0.2157, allocations: 265.6 kB / 477 MB, free: 44.2 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00525/0.221, allocations: 2.588 MB / 479.6 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003821/0.2214, allocations: 0.616 MB / 480.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009057/0.2223, allocations: 0.9225 MB / 481.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007041/0.2293, allocations: 6.003 MB / 487.1 MB, free: 40.29 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2293, allocations: 7.219 kB / 487.2 MB, free: 40.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2293, allocations: 0 / 487.2 MB, free: 40.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.979e-05/0.2294, allocations: 3.656 kB / 487.2 MB, free: 40.29 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.00325/0.2326, allocations: 2.925 MB / 490.1 MB, free: 38.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.2327, allocations: 10.34 kB / 490.1 MB, free: 38.62 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002367/0.2329, allocations: 300.9 kB / 490.4 MB, free: 38.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001178/0.2341, allocations: 0.5164 MB / 490.9 MB, free: 38.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.2355, allocations: 1.22 MB / 492.1 MB, free: 37.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.2356, allocations: 274.5 kB / 492.4 MB, free: 37.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002448/0.2359, allocations: 217.2 kB / 492.6 MB, free: 37.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003193/0.2391, allocations: 2.733 MB / 495.3 MB, free: 36.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/0.2391, allocations: 5.031 kB / 495.3 MB, free: 36.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.2393, allocations: 87.28 kB / 495.4 MB, free: 36.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.093e-05/0.2393, allocations: 53.55 kB / 495.5 MB, free: 36.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003656/0.243, allocations: 3.154 MB / 498.6 MB, free: 35.09 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008865/0.2518, allocations: 8.024 MB / 0.4948 GB, free: 30.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.2535, allocations: 1.453 MB / 0.4962 GB, free: 29.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008561/0.2543, allocations: 0.8251 MB / 0.497 GB, free: 29.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005702/0.26, allocations: 4.358 MB / 0.5013 GB, free: 27.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.2601, allocations: 53.56 kB / 0.5013 GB, free: 27.33 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006153/0.2607, allocations: 235.5 kB / 0.5015 GB, free: 27.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=113): time 4.308e-06/0.2607, allocations: 1.625 kB / 0.5015 GB, free: 27.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=161): time 0.01777/0.2785, allocations: 9.306 MB / 0.5106 GB, free: 19.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.2785, allocations: 124.1 kB / 0.5107 GB, free: 19.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.2795, allocations: 1.418 MB / 0.5121 GB, free: 18.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.132e-05/0.2796, allocations: 57.7 kB / 0.5122 GB, free: 18.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/0.2799, allocations: 1.073 MB / 0.5132 GB, free: 16.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.2801, allocations: 0.5771 MB / 0.5138 GB, free: 16.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003753/0.2805, allocations: 468.6 kB / 0.5142 GB, free: 15.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.214e-05/0.2805, allocations: 301.1 kB / 0.5145 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008035/0.2813, allocations: 0.8559 MB / 0.5154 GB, free: 14.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.2823, allocations: 1.719 MB / 0.517 GB, free: 12.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/0.2843, allocations: 2.704 MB / 0.5197 GB, free: 9.566 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/0.2843, allocations: 8.562 kB / 0.5197 GB, free: 9.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.004409/0.2887, allocations: 3.475 MB / 0.5231 GB, free: 6.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.2887, allocations: 16 kB / 0.5231 GB, free: 6.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/0.2887, allocations: 28 kB / 0.5231 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002557/0.2913, allocations: 1.173 MB / 0.5243 GB, free: 4.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009062/0.2922, allocations: 0.5109 MB / 0.5248 GB, free: 4.375 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005589/0.2978, allocations: 7.247 MB / 0.5318 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/0.2991, allocations: 106.5 kB / 0.532 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.2993, allocations: 151.6 kB / 0.5321 GB, free: 12.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008141/0.3001, allocations: 444.9 kB / 0.5325 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.3004, allocations: 171 kB / 0.5327 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004785/0.3051, allocations: 2.838 MB / 0.5355 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.3052, allocations: 16 kB / 0.5355 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.3052, allocations: 4 kB / 0.5355 GB, free: 9.133 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.3052, allocations: 18.56 kB / 0.5355 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007533/0.3127, allocations: 4.569 MB / 0.54 GB, free: 4.457 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.3127, allocations: 0 / 0.54 GB, free: 4.457 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006124/0.3133, allocations: 263.6 kB / 0.5402 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002524/0.3159, allocations: 1.034 MB / 0.5412 GB, free: 3.172 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/0.316, allocations: 62.84 kB / 0.5413 GB, free: 3.113 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00522/0.3212, allocations: 6.539 MB / 0.5477 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3212, allocations: 7.938 kB / 0.5477 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005181/0.3264, allocations: 3.661 MB / 0.5512 GB, free: 8.512 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.3267, allocations: 153.6 kB / 0.5514 GB, free: 8.363 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.3269, allocations: 30.66 kB / 0.5514 GB, free: 8.336 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005289/0.3274, allocations: 43.98 kB / 0.5515 GB, free: 8.293 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.3277, allocations: 156.9 kB / 0.5516 GB, free: 8.137 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.3278, allocations: 71.95 kB / 0.5517 GB, free: 8.066 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008427/0.3286, allocations: 0.8882 MB / 0.5525 GB, free: 7.176 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3286, allocations: 0 / 0.5525 GB, free: 7.176 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00283/0.3314, allocations: 1.117 MB / 0.5536 GB, free: 6.059 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.logn) * 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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007368/0.3388, allocations: 5.302 MB / 0.5588 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003495/0.3423, allocations: 2.577 MB / 0.5613 GB, free: 14.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3423, allocations: 0 / 0.5613 GB, free: 14.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.3439, allocations: 1.309 MB / 0.5626 GB, free: 12.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.3452, allocations: 283.6 kB / 0.5629 GB, free: 12.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/0.3677, allocations: 17.12 MB / 0.5796 GB, free: 10.39 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006464/0.3683, allocations: 0.8217 MB / 0.5804 GB, free: 9.559 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009723/0.3693, allocations: 393.5 kB / 0.5808 GB, free: 9.285 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008847/0.3702, allocations: 0.8805 MB / 0.5816 GB, free: 8.406 MB / 474.7 MB Notification: Performance of SimCode: time 2.034e-06/0.3702, allocations: 4 kB / 0.5816 GB, free: 8.402 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2132/0.5834, allocations: 58.94 MB / 0.6392 GB, free: 147.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.731/10.31, allocations: 14.72 kB / 0.6392 GB, free: 147.3 MB / 0.4948 GB " [Timeout remaining time 650] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.16766385640949] Failed to read output from testmodel.py, exit status != 0: 10.43130792118609 10.440332249999999 10.209079041 Calling exit ...