Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004825/0.004825, allocations: 99.02 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 194.5 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1906/0.1906, allocations: 15.32 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 71.89 kB / 424.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2768, allocations: 53.6 MB / 478.3 MB, free: 25.61 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.03321/0.3101, allocations: 27.12 MB / 0.4936 GB, free: 7.605 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01869/0.3288, allocations: 18.18 MB / 0.5113 GB, free: 5.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.3304, allocations: 15.94 kB / 0.5114 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.3318, allocations: 476.4 kB / 0.5118 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002715/0.3345, allocations: 0.8302 MB / 0.5126 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007597/0.3422, allocations: 2.791 MB / 0.5153 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.3451, allocations: 1.637 MB / 0.5169 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.3464, allocations: 0.9181 MB / 0.5178 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008857/0.3473, allocations: 0.7128 MB / 0.5185 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.3483, allocations: 0.8055 MB / 0.5193 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002249/0.3486, allocations: 140 kB / 0.5195 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005271/0.3538, allocations: 1.751 MB / 0.5212 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004531/0.3543, allocations: 358.9 kB / 0.5215 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008576/0.3552, allocations: 0.7426 MB / 0.5222 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00774/0.3629, allocations: 3.478 MB / 0.5256 GB, free: 6.629 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.363, allocations: 0 / 0.5256 GB, free: 6.629 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.761e-06/0.363, allocations: 0 / 0.5256 GB, free: 6.629 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.281e-05/0.363, allocations: 3.938 kB / 0.5256 GB, free: 6.625 MB / 398.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.00347/0.3665, allocations: 1.983 MB / 0.5276 GB, free: 4.586 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.3666, allocations: 8.031 kB / 0.5276 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002176/0.3668, allocations: 177.8 kB / 0.5278 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/0.3683, allocations: 393.1 kB / 0.5281 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.37, allocations: 0.9892 MB / 0.5291 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.3702, allocations: 145.9 kB / 0.5292 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.3704, allocations: 120 kB / 0.5293 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002611/0.373, allocations: 1.641 MB / 0.5309 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.373, allocations: 7.938 kB / 0.531 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.3732, allocations: 44 kB / 0.531 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.922e-05/0.3732, allocations: 36 kB / 0.531 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003362/0.3766, allocations: 2.096 MB / 0.5331 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008678/0.3853, allocations: 5.418 MB / 0.5384 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.3867, allocations: 0.7328 MB / 0.5391 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006145/0.3873, allocations: 352.4 kB / 0.5394 GB, free: 8.082 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007927/0.3952, allocations: 5.042 MB / 0.5443 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.3953, allocations: 42.55 kB / 0.5444 GB, free: 2.41 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003734/0.3957, allocations: 87.2 kB / 0.5445 GB, free: 2.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 3.206e-06/0.3957, allocations: 0 / 0.5445 GB, free: 2.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.001499/0.3972, allocations: 0.7468 MB / 0.5452 GB, free: 1.527 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.3973, allocations: 110.8 kB / 0.5453 GB, free: 1.395 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.3988, allocations: 1.203 MB / 0.5465 GB, free: 180 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.358e-05/0.3988, allocations: 33.7 kB / 0.5465 GB, free: 140 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006102/0.3995, allocations: 0.7906 MB / 0.5473 GB, free: 15.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.3996, allocations: 146.9 kB / 0.5474 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/0.3999, allocations: 274.7 kB / 0.5477 GB, free: 14.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.4001, allocations: 349.9 kB / 0.548 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005346/0.4007, allocations: 326.5 kB / 0.5483 GB, free: 14.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.4018, allocations: 1.038 MB / 0.5493 GB, free: 12.85 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.4035, allocations: 1.399 MB / 0.5507 GB, free: 11.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/0.4035, allocations: 11.94 kB / 0.5507 GB, free: 11.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002368/0.4059, allocations: 1.448 MB / 0.5521 GB, free: 9.609 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.406, allocations: 19.94 kB / 0.5522 GB, free: 9.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.948e-05/0.406, allocations: 24 kB / 0.5522 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006506/0.4067, allocations: 149.6 kB / 0.5523 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.4078, allocations: 383.8 kB / 0.5527 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/0.4111, allocations: 4.057 MB / 0.5566 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000881/0.412, allocations: 76.05 kB / 0.5567 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.4121, allocations: 91.98 kB / 0.5568 GB, free: 4.477 MB / 430.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.0005217/0.4127, allocations: 313.1 kB / 0.5571 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001978/0.4129, allocations: 107.3 kB / 0.5572 GB, free: 4.055 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.4145, allocations: 0.8504 MB / 0.558 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.4146, allocations: 4 kB / 0.558 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.4146, allocations: 0 / 0.558 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4146, allocations: 7.984 kB / 0.5581 GB, free: 3.145 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.4167, allocations: 1.267 MB / 0.5593 GB, free: 1.793 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.4167, allocations: 4 kB / 0.5593 GB, free: 1.789 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002556/0.4169, allocations: 55.97 kB / 0.5593 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007396/0.4177, allocations: 179.2 kB / 0.5595 GB, free: 1.547 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.4177, allocations: 12 kB / 0.5595 GB, free: 1.535 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003075/0.4208, allocations: 3.951 MB / 0.5634 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4208, allocations: 3.938 kB / 0.5634 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.4221, allocations: 0.8566 MB / 0.5642 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/0.4224, allocations: 172.5 kB / 0.5644 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.4225, allocations: 15.89 kB / 0.5644 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003519/0.4229, allocations: 8 kB / 0.5644 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.641e-05/0.423, allocations: 47.89 kB / 0.5645 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.423, allocations: 16 kB / 0.5645 GB, free: 12.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001159/0.4242, allocations: 0.881 MB / 0.5653 GB, free: 11.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4242, allocations: 0 / 0.5653 GB, free: 11.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001812/0.426, allocations: 0.6229 MB / 0.5659 GB, free: 10.54 MB / 446.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.002923/0.4289, allocations: 2.061 MB / 0.568 GB, free: 8.422 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.4307, allocations: 0.7941 MB / 0.5687 GB, free: 7.633 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4307, allocations: 0 / 0.5687 GB, free: 7.633 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005445/0.4313, allocations: 392.9 kB / 0.5691 GB, free: 7.223 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.4324, allocations: 172.6 kB / 0.5693 GB, free: 7.059 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/0.4453, allocations: 9.638 MB / 0.5787 GB, free: 12.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.446, allocations: 1.067 MB / 0.5797 GB, free: 11.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008266/0.4469, allocations: 275 kB / 0.58 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006095/0.4475, allocations: 495.2 kB / 0.5805 GB, free: 10.65 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4475, allocations: 0 / 0.5805 GB, free: 10.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3183/0.7659, allocations: 29.12 MB / 0.6089 GB, free: 116.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.43/23.19, allocations: 5.75 kB / 0.6089 GB, free: 116.9 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)