Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.0008877/0.0008877, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001078/0.001078, allocations: 165.9 kB / 22.46 MB, free: 2.109 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.8866/0.8866, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.08297/0.08297, allocations: 17.38 MB / 276.6 MB, free: 11.85 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.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 411.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.251e-05/2.404e-05, allocations: 4.125 kB / 411.4 MB, free: 13.23 MB / 330.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.CheckSubstancesData.StandardElectrochemicalCell2): time 0.02256/0.02259, allocations: 27.45 MB / 438.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01347/0.03605, allocations: 16.02 MB / 454.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008666/0.03692, allocations: 27.75 kB / 454.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000943/0.03786, allocations: 431.4 kB / 455.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001777/0.03964, allocations: 0.8437 MB / 456.2 MB, free: 13.63 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005599/0.04524, allocations: 2.934 MB / 459.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.04676, allocations: 1.691 MB / 460.8 MB, free: 8.98 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005814/0.04734, allocations: 0.7351 MB / 461.6 MB, free: 8.227 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006183/0.04796, allocations: 1.029 MB / 462.6 MB, free: 7.195 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005907/0.04855, allocations: 0.6429 MB / 463.2 MB, free: 6.551 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.04866, allocations: 140 kB / 463.4 MB, free: 6.414 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002733/0.0514, allocations: 1.684 MB / 465.1 MB, free: 4.727 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.0516, allocations: 366.8 kB / 465.4 MB, free: 4.367 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003114/0.05191, allocations: 0.5261 MB / 465.9 MB, free: 3.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004422/0.05633, allocations: 3.756 MB / 469.7 MB, free: 72 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.417e-06/0.05634, allocations: 0 / 469.7 MB, free: 72 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.05634, allocations: 0 / 469.7 MB, free: 72 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001022/0.05645, allocations: 4 kB / 469.7 MB, free: 68 kB / 362.7 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.003073/0.05952, allocations: 1.878 MB / 471.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.05958, allocations: 8.031 kB / 471.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001812/0.05976, allocations: 177.8 kB / 471.8 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000925/0.06068, allocations: 395.1 kB / 472.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.06191, allocations: 0.9268 MB / 473.1 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.06203, allocations: 197.8 kB / 473.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.06217, allocations: 120.4 kB / 473.4 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.0639, allocations: 1.664 MB / 475 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.06393, allocations: 3.938 kB / 475.1 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.219e-05/0.06401, allocations: 48 kB / 475.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.06403, allocations: 28 kB / 475.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002026/0.06605, allocations: 2.116 MB / 477.2 MB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004975/0.07103, allocations: 4.854 MB / 482.1 MB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008444/0.07187, allocations: 0.6859 MB / 482.8 MB, free: 2.656 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003509/0.07222, allocations: 328.4 kB / 483.1 MB, free: 2.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003937/0.07616, allocations: 2.646 MB / 485.7 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.07619, allocations: 50.47 kB / 485.8 MB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001449/0.07633, allocations: 79.19 kB / 485.9 MB, free: 15.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 2.004e-06/0.07633, allocations: 4 kB / 485.9 MB, free: 15.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009066/0.07724, allocations: 0.5966 MB / 486.5 MB, free: 14.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.07729, allocations: 114.7 kB / 486.6 MB, free: 14.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.07848, allocations: 1.249 MB / 487.8 MB, free: 13.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.07851, allocations: 33.95 kB / 487.9 MB, free: 13.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.07886, allocations: 0.7984 MB / 488.7 MB, free: 12.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.368e-05/0.07893, allocations: 146.9 kB / 488.8 MB, free: 12.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/0.07915, allocations: 274.7 kB / 489.1 MB, free: 12.24 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.07925, allocations: 345.9 kB / 489.4 MB, free: 11.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/0.07959, allocations: 330.5 kB / 489.7 MB, free: 11.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006263/0.08022, allocations: 1.05 MB / 490.8 MB, free: 10.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009911/0.08121, allocations: 1.399 MB / 492.2 MB, free: 8.395 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.08122, allocations: 8 kB / 492.2 MB, free: 8.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001661/0.08288, allocations: 1.463 MB / 493.7 MB, free: 6.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.0829, allocations: 16 kB / 493.7 MB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.08292, allocations: 28 kB / 493.7 MB, free: 6.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003716/0.08329, allocations: 153.9 kB / 493.9 MB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005716/0.08386, allocations: 383.3 kB / 494.2 MB, free: 6.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.08557, allocations: 3.847 MB / 498.1 MB, free: 2.199 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.08595, allocations: 75.86 kB / 498.1 MB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-05/0.08602, allocations: 95.98 kB / 498.2 MB, free: 2.031 MB / 394.7 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.0002834/0.08631, allocations: 313.1 kB / 498.5 MB, free: 1.715 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.651e-05/0.0864, allocations: 103.3 kB / 498.6 MB, free: 1.613 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000912/0.08732, allocations: 0.8579 MB / 499.5 MB, free: 0.7148 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.08732, allocations: 4 kB / 499.5 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.08732, allocations: 0 / 499.5 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.08732, allocations: 11.92 kB / 499.5 MB, free: 0.6992 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.08868, allocations: 1.179 MB / 0.489 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.08869, allocations: 0 / 0.489 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.08881, allocations: 59.89 kB / 0.489 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003324/0.08914, allocations: 179.4 kB / 0.4892 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.08916, allocations: 15.98 kB / 0.4892 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.09113, allocations: 3.725 MB / 0.4928 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.09113, allocations: 4.031 kB / 0.4929 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000859/0.09199, allocations: 0.8598 MB / 0.4937 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.09214, allocations: 99.22 kB / 0.4938 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.46e-05/0.0922, allocations: 8 kB / 0.4938 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.09246, allocations: 12 kB / 0.4938 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.09251, allocations: 39.88 kB / 0.4938 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.09253, allocations: 12 kB / 0.4939 GB, free: 10.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007918/0.09332, allocations: 0.8927 MB / 0.4947 GB, free: 9.184 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.09332, allocations: 0 / 0.4947 GB, free: 9.184 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001382/0.09471, allocations: 0.6267 MB / 0.4953 GB, free: 8.555 MB / 410.7 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.001873/0.09658, allocations: 2.088 MB / 0.4974 GB, free: 6.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.09768, allocations: 0.7746 MB / 0.4981 GB, free: 5.641 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.09768, allocations: 0 / 0.4981 GB, free: 5.641 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.09803, allocations: 386.3 kB / 0.4985 GB, free: 5.238 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006961/0.09873, allocations: 170.1 kB / 0.4987 GB, free: 5.078 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008989/0.1077, allocations: 9.542 MB / 0.508 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.108, allocations: 480.9 kB / 0.5084 GB, free: 10.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005677/0.1086, allocations: 285.3 kB / 0.5087 GB, free: 9.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/0.109, allocations: 0.4886 MB / 0.5092 GB, free: 9.352 MB / 426.7 MB Notification: Performance of SimCode: time 1.944e-06/0.109, allocations: 0 / 0.5092 GB, free: 9.352 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04193/0.1509, allocations: 30.85 MB / 0.5393 GB, free: 10.73 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.586/8.737, allocations: 14.84 kB / 0.5393 GB, free: 10.71 MB / 458.7 MB " [Timeout remaining time 651] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.676277926191688] Failed to read output from testmodel.py, exit status != 0: 9.006966820918024 8.852130776 8.794050757 Calling exit ...