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.001787/0.001787, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002293/0.002293, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.379/1.379, allocations: 230.6 MB / 256 MB, free: 7.961 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.1392/0.1392, allocations: 23.89 MB / 336.3 MB, free: 11.12 MB / 270.1 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.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",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.001906/0.001906, allocations: 67.91 kB / 471.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3165, allocations: 59.87 MB / 0.5187 GB, free: 9.578 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.03677/0.3533, allocations: 27.81 MB / 0.5458 GB, free: 12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02312/0.3764, allocations: 18.32 MB / 0.5637 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.3778, allocations: 23.81 kB / 0.5637 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001761/0.3796, allocations: 483.2 kB / 0.5642 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003068/0.3826, allocations: 0.8417 MB / 0.565 GB, free: 9.996 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008474/0.3911, allocations: 2.843 MB / 0.5678 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002866/0.394, allocations: 1.646 MB / 0.5694 GB, free: 6.102 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.3952, allocations: 0.7312 MB / 0.5701 GB, free: 5.348 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.3963, allocations: 0.7284 MB / 0.5708 GB, free: 4.617 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.3977, allocations: 0.8094 MB / 0.5716 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003729/0.3981, allocations: 144 kB / 0.5717 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005534/0.4036, allocations: 1.778 MB / 0.5735 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005383/0.4041, allocations: 366.8 kB / 0.5738 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.4053, allocations: 0.7427 MB / 0.5746 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007513/0.4128, allocations: 3.583 MB / 0.5781 GB, free: 13.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4128, allocations: 4 kB / 0.5781 GB, free: 13.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4128, allocations: 0 / 0.5781 GB, free: 13.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.876e-05/0.4129, allocations: 0 / 0.5781 GB, free: 13.18 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003982/0.4169, allocations: 1.893 MB / 0.5799 GB, free: 11.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.4169, allocations: 12.03 kB / 0.5799 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003111/0.4172, allocations: 177.8 kB / 0.5801 GB, free: 11.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001727/0.419, allocations: 399.1 kB / 0.5805 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.4208, allocations: 0.9197 MB / 0.5814 GB, free: 9.707 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00019/0.4209, allocations: 201.3 kB / 0.5816 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002575/0.4212, allocations: 112 kB / 0.5817 GB, free: 9.375 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/0.424, allocations: 1.668 MB / 0.5833 GB, free: 7.633 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.4241, allocations: 4 kB / 0.5833 GB, free: 7.629 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.4242, allocations: 44 kB / 0.5833 GB, free: 7.586 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/0.4242, allocations: 32 kB / 0.5834 GB, free: 7.555 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.4275, allocations: 2.131 MB / 0.5855 GB, free: 5.422 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008368/0.4359, allocations: 5.388 MB / 0.5907 GB, free: 15.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.4372, allocations: 0.686 MB / 0.5914 GB, free: 15.13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005702/0.4378, allocations: 332.4 kB / 0.5917 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006434/0.4442, allocations: 2.777 MB / 0.5944 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.4442, allocations: 38.55 kB / 0.5944 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003169/0.4445, allocations: 83.25 kB / 0.5945 GB, free: 11.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.624e-06/0.4445, allocations: 0 / 0.5945 GB, free: 11.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001397/0.4459, allocations: 0.6116 MB / 0.5951 GB, free: 11.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.446, allocations: 106.8 kB / 0.5952 GB, free: 11.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.4475, allocations: 1.214 MB / 0.5964 GB, free: 9.883 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.4476, allocations: 33.7 kB / 0.5964 GB, free: 9.844 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000617/0.4482, allocations: 0.7984 MB / 0.5972 GB, free: 9.035 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.4483, allocations: 146.8 kB / 0.5974 GB, free: 8.891 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003561/0.4487, allocations: 275 kB / 0.5976 GB, free: 8.617 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.4488, allocations: 349.9 kB / 0.598 GB, free: 8.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005279/0.4494, allocations: 322.5 kB / 0.5983 GB, free: 7.953 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.4505, allocations: 1.061 MB / 0.5993 GB, free: 6.531 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.4522, allocations: 1.403 MB / 0.6007 GB, free: 4.762 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.782e-05/0.4522, allocations: 8 kB / 0.6007 GB, free: 4.754 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002407/0.4546, allocations: 1.452 MB / 0.6021 GB, free: 3.289 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.4547, allocations: 23.94 kB / 0.6021 GB, free: 3.266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-05/0.4547, allocations: 24 kB / 0.6021 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006303/0.4553, allocations: 158 kB / 0.6023 GB, free: 3.082 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.4564, allocations: 367.4 kB / 0.6026 GB, free: 2.723 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/0.4596, allocations: 3.866 MB / 0.6064 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008235/0.4604, allocations: 80.06 kB / 0.6065 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.4606, allocations: 91.98 kB / 0.6066 GB, free: 14.4 MB / 462.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.0004827/0.4611, allocations: 313.1 kB / 0.6069 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.4613, allocations: 111.3 kB / 0.607 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.463, allocations: 0.8493 MB / 0.6078 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.463, allocations: 4 kB / 0.6078 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.463, allocations: 0 / 0.6078 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.463, allocations: 3.984 kB / 0.6078 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.4651, allocations: 1.242 MB / 0.609 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4651, allocations: 0 / 0.609 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.4654, allocations: 63.91 kB / 0.6091 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007047/0.4661, allocations: 171.4 kB / 0.6093 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.4661, allocations: 12 kB / 0.6093 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002944/0.4691, allocations: 3.748 MB / 0.6129 GB, free: 7.461 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4691, allocations: 0 / 0.6129 GB, free: 7.461 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.4703, allocations: 0.8598 MB / 0.6138 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.4705, allocations: 111.3 kB / 0.6139 GB, free: 6.441 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.4707, allocations: 8 kB / 0.6139 GB, free: 6.434 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.4711, allocations: 12 kB / 0.6139 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.4711, allocations: 35.83 kB / 0.6139 GB, free: 6.387 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.4712, allocations: 19.98 kB / 0.614 GB, free: 6.367 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001145/0.4723, allocations: 0.8927 MB / 0.6148 GB, free: 5.469 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4723, allocations: 0 / 0.6148 GB, free: 5.469 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001921/0.4742, allocations: 0.6344 MB / 0.6154 GB, free: 4.832 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.002886/0.4771, allocations: 2.056 MB / 0.6175 GB, free: 2.723 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.4787, allocations: 0.7663 MB / 0.6182 GB, free: 1.961 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.4787, allocations: 4 kB / 0.6182 GB, free: 1.957 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005246/0.4792, allocations: 380.2 kB / 0.6186 GB, free: 1.562 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009852/0.4802, allocations: 179.4 kB / 0.6187 GB, free: 1.391 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.4933, allocations: 9.663 MB / 0.6282 GB, free: 6.801 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007997/0.4941, allocations: 1.063 MB / 0.6292 GB, free: 5.711 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007994/0.4949, allocations: 285.8 kB / 0.6295 GB, free: 5.449 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006318/0.4955, allocations: 499.2 kB / 0.63 GB, free: 4.961 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4955, allocations: 0 / 0.63 GB, free: 4.961 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07518/0.5707, allocations: 30.48 MB / 0.6597 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.49/23.06, allocations: 3.938 kB / 0.6597 GB, free: 6.652 MB / 0.4981 GB " [Timeout remaining time 637] (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: 25.750118348980322] Failed to read output from testmodel.py, exit status != 0: 23.188898297958076 23.204733333 22.788656652 Calling exit ...