Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.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.0008222/0.0008222, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008871/0.0008871, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.8124/0.8124, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.07623/0.07623, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 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.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 3.938 kB / 411.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.211e-05, allocations: 3.812 kB / 411.6 MB, free: 12.52 MB / 330.7 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.ElectrochemicalCell): time 0.02353/0.02355, allocations: 30.17 MB / 441.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01958/0.04313, allocations: 25.31 MB / 467.1 MB, free: 2.449 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.04474, allocations: 31.75 kB / 467.1 MB, free: 2.418 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.04592, allocations: 0.6046 MB / 467.7 MB, free: 1.809 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004089/0.05001, allocations: 2.238 MB / 469.9 MB, free: 15.55 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007129/0.05714, allocations: 4.037 MB / 474 MB, free: 11.49 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002389/0.05953, allocations: 2.959 MB / 476.9 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009669/0.0605, allocations: 1.346 MB / 478.3 MB, free: 7.125 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001377/0.06187, allocations: 1.899 MB / 480.2 MB, free: 5.223 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00094/0.06281, allocations: 1.181 MB / 481.4 MB, free: 4.039 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002005/0.06301, allocations: 264 kB / 481.6 MB, free: 3.781 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004716/0.06773, allocations: 2.982 MB / 484.6 MB, free: 0.793 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003108/0.06804, allocations: 0.6113 MB / 485.2 MB, free: 184 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006086/0.06865, allocations: 0.9433 MB / 486.2 MB, free: 15.23 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008974/0.07762, allocations: 6.538 MB / 492.7 MB, free: 8.672 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.07763, allocations: 3.938 kB / 492.7 MB, free: 8.668 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.07763, allocations: 4 kB / 492.7 MB, free: 8.664 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.067e-05/0.07768, allocations: 0 / 492.7 MB, free: 8.664 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.003957/0.08164, allocations: 3.072 MB / 495.8 MB, free: 5.539 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.08168, allocations: 8.031 kB / 495.8 MB, free: 5.531 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002558/0.08194, allocations: 304.3 kB / 496.1 MB, free: 5.223 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001225/0.08316, allocations: 0.553 MB / 496.6 MB, free: 4.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.08455, allocations: 1.242 MB / 497.9 MB, free: 3.395 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.08469, allocations: 275.7 kB / 498.1 MB, free: 3.098 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.08491, allocations: 224.3 kB / 498.4 MB, free: 2.879 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002672/0.08759, allocations: 2.683 MB / 0.4893 GB, free: 108 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.08761, allocations: 0 / 0.4893 GB, free: 108 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/0.08775, allocations: 88 kB / 0.4894 GB, free: 20 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.832e-05/0.08779, allocations: 52.05 kB / 0.4894 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003291/0.09108, allocations: 3.295 MB / 0.4926 GB, free: 12.67 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.007614/0.0987, allocations: 7.253 MB / 0.4997 GB, free: 5.266 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.1002, allocations: 1.543 MB / 0.5012 GB, free: 3.719 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/0.101, allocations: 0.8431 MB / 0.5021 GB, free: 2.863 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005563/0.1066, allocations: 4.285 MB / 0.5062 GB, free: 14.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.1066, allocations: 51.81 kB / 0.5063 GB, free: 14.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=128): time 2.484e-06/0.1066, allocations: 0 / 0.5063 GB, free: 14.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=181): time 0.01468/0.1213, allocations: 8.108 MB / 0.5142 GB, free: 6.328 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.1214, allocations: 103.1 kB / 0.5143 GB, free: 6.211 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.1225, allocations: 1.412 MB / 0.5157 GB, free: 4.781 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.908e-05/0.1226, allocations: 57.7 kB / 0.5157 GB, free: 4.719 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004534/0.123, allocations: 1.081 MB / 0.5168 GB, free: 3.621 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003447/0.1234, allocations: 0.6468 MB / 0.5174 GB, free: 2.969 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004318/0.1238, allocations: 477.1 kB / 0.5179 GB, free: 2.496 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002792/0.1241, allocations: 301.1 kB / 0.5182 GB, free: 2.199 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008818/0.1249, allocations: 0.8132 MB / 0.519 GB, free: 1.383 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.1262, allocations: 1.661 MB / 0.5206 GB, free: 15.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.1284, allocations: 2.622 MB / 0.5232 GB, free: 12.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.1284, allocations: 8 kB / 0.5232 GB, free: 12.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.003894/0.1323, allocations: 3.05 MB / 0.5261 GB, free: 9.258 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.1323, allocations: 16.34 kB / 0.5262 GB, free: 9.242 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.1323, allocations: 43.81 kB / 0.5262 GB, free: 9.199 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.1337, allocations: 0.5143 MB / 0.5267 GB, free: 8.672 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/0.1354, allocations: 0.7958 MB / 0.5275 GB, free: 7.875 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004979/0.1404, allocations: 7.588 MB / 0.5349 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009103/0.1413, allocations: 100.1 kB / 0.535 GB, free: 15.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.1414, allocations: 140 kB / 0.5351 GB, free: 15.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006458/0.1421, allocations: 456.8 kB / 0.5356 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000222/0.1423, allocations: 178.9 kB / 0.5357 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/0.1458, allocations: 2.578 MB / 0.5382 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.1458, allocations: 20 kB / 0.5383 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1458, allocations: 0 / 0.5383 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.1458, allocations: 7.969 kB / 0.5383 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00571/0.1515, allocations: 4.476 MB / 0.5426 GB, free: 7.562 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.1515, allocations: 12.97 kB / 0.5426 GB, free: 7.551 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007911/0.1523, allocations: 419.4 kB / 0.543 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/0.1537, allocations: 0.5473 MB / 0.5436 GB, free: 6.574 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.772e-05/0.1538, allocations: 83.95 kB / 0.5437 GB, free: 6.492 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00451/0.1583, allocations: 7.376 MB / 0.5509 GB, free: 14.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.1583, allocations: 19.88 kB / 0.5509 GB, free: 14.58 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003954/0.1623, allocations: 3.435 MB / 0.5542 GB, free: 10.96 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/0.1626, allocations: 182.8 kB / 0.5544 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.1627, allocations: 52 kB / 0.5545 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004827/0.1632, allocations: 55.98 kB / 0.5545 GB, free: 10.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.1634, allocations: 196.7 kB / 0.5547 GB, free: 10.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.634e-05/0.1635, allocations: 91.91 kB / 0.5548 GB, free: 10.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007341/0.1642, allocations: 0.9006 MB / 0.5557 GB, free: 9.488 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1642, allocations: 0 / 0.5557 GB, free: 9.488 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002366/0.1666, allocations: 1.216 MB / 0.5569 GB, free: 8.27 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005689/0.1722, allocations: 5.265 MB / 0.562 GB, free: 2.809 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002992/0.1752, allocations: 2.366 MB / 0.5643 GB, free: 432 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.1752, allocations: 0 / 0.5643 GB, free: 432 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.1765, allocations: 1.368 MB / 0.5656 GB, free: 15 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001485/0.178, allocations: 349.6 kB / 0.566 GB, free: 14.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1466/0.3246, allocations: 16.84 MB / 0.5824 GB, free: 145.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006882/0.3253, allocations: 0.857 MB / 0.5833 GB, free: 145.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001054/0.3263, allocations: 467.3 kB / 0.5837 GB, free: 145.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/0.3271, allocations: 0.9671 MB / 0.5847 GB, free: 145.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.643e-06/0.3271, allocations: 0 / 0.5847 GB, free: 145.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0623/0.3894, allocations: 60.38 MB / 0.6436 GB, free: 105.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.084/9.474, allocations: 15.09 kB / 0.6436 GB, free: 105.3 MB / 490.7 MB " [Timeout remaining time 650] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.230576631613076] Failed to read output from testmodel.py, exit status != 0: 9.723424131050706 9.597889762 9.518980886 Calling exit ...