Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",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.001147/0.001147, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.161/1.161, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.158/0.158, allocations: 15.32 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 63.91 kB / 370.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07821/0.07932, allocations: 53.61 MB / 424.1 MB, free: 14.18 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.StandardElectrochemicalCell): time 0.2404/0.3197, allocations: 27.14 MB / 451.2 MB, free: 39.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.3342, allocations: 21.57 MB / 472.8 MB, free: 28.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005713/0.3348, allocations: 20.12 kB / 472.8 MB, free: 28.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009413/0.3357, allocations: 0.5324 MB / 473.3 MB, free: 28.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001707/0.3374, allocations: 0.9956 MB / 474.3 MB, free: 27.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005684/0.3431, allocations: 3.278 MB / 477.6 MB, free: 25.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.3445, allocations: 1.797 MB / 479.4 MB, free: 24.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007365/0.3452, allocations: 0.9504 MB / 480.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005643/0.3458, allocations: 0.7802 MB / 481.1 MB, free: 23.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006974/0.3465, allocations: 0.8891 MB / 482 MB, free: 23.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002015/0.3467, allocations: 147.8 kB / 482.2 MB, free: 23.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004624/0.3514, allocations: 2.057 MB / 484.2 MB, free: 23.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002401/0.3516, allocations: 380.2 kB / 484.6 MB, free: 22.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005216/0.3521, allocations: 0.8088 MB / 485.4 MB, free: 22.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004581/0.3567, allocations: 3.915 MB / 489.3 MB, free: 20.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3567, allocations: 0 / 489.3 MB, free: 20.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3567, allocations: 4 kB / 489.3 MB, free: 20.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.427e-05/0.3568, allocations: 1.375 kB / 489.3 MB, free: 20.58 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.002616/0.3594, allocations: 2.086 MB / 491.4 MB, free: 19.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3594, allocations: 10.08 kB / 491.4 MB, free: 19.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000175/0.3596, allocations: 187.8 kB / 491.6 MB, free: 19.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001485/0.3611, allocations: 433.7 kB / 492 MB, free: 19.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.3624, allocations: 1.016 MB / 493 MB, free: 18.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.3625, allocations: 157.6 kB / 493.2 MB, free: 18.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.3627, allocations: 122.2 kB / 493.3 MB, free: 18.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001989/0.3646, allocations: 1.754 MB / 495.1 MB, free: 17.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.3647, allocations: 7.469 kB / 495.1 MB, free: 17.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.3648, allocations: 50.84 kB / 495.1 MB, free: 17.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.3648, allocations: 36.3 kB / 495.2 MB, free: 17.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002488/0.3673, allocations: 2.319 MB / 497.5 MB, free: 16.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005541/0.3729, allocations: 5.573 MB / 0.4913 GB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009864/0.3739, allocations: 0.7305 MB / 0.492 GB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.3743, allocations: 365.9 kB / 0.4923 GB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005684/0.38, allocations: 5.711 MB / 0.4979 GB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.38, allocations: 46.42 kB / 0.4979 GB, free: 8.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.753e-06/0.3801, allocations: 0 / 0.4979 GB, free: 8.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001121/0.3812, allocations: 0.7888 MB / 0.4987 GB, free: 7.539 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/0.3812, allocations: 110.8 kB / 0.4988 GB, free: 7.406 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.3823, allocations: 1.294 MB / 0.5001 GB, free: 6.285 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.3823, allocations: 29.7 kB / 0.5001 GB, free: 6.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/0.3826, allocations: 0.8318 MB / 0.5009 GB, free: 5.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.271e-05/0.3827, allocations: 150.4 kB / 0.5011 GB, free: 5.352 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.383, allocations: 288.7 kB / 0.5013 GB, free: 5.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.731e-05/0.383, allocations: 359.7 kB / 0.5017 GB, free: 4.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.3834, allocations: 331.5 kB / 0.502 GB, free: 4.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005951/0.384, allocations: 1.161 MB / 0.5031 GB, free: 2.965 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.385, allocations: 1.524 MB / 0.5046 GB, free: 1.082 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.385, allocations: 8 kB / 0.5046 GB, free: 1.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.001788/0.3868, allocations: 1.551 MB / 0.5061 GB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.3869, allocations: 19.94 kB / 0.5062 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/0.3869, allocations: 32 kB / 0.5062 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005276/0.3874, allocations: 156.7 kB / 0.5063 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.3884, allocations: 395.4 kB / 0.5067 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/0.391, allocations: 4.074 MB / 0.5107 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007439/0.3918, allocations: 190.2 kB / 0.5109 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.3919, allocations: 104 kB / 0.511 GB, free: 10.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * 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.0003555/0.3923, allocations: 329 kB / 0.5113 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.3925, allocations: 114.6 kB / 0.5114 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.3942, allocations: 0.9436 MB / 0.5123 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3942, allocations: 4 kB / 0.5123 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3942, allocations: 4 kB / 0.5123 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3942, allocations: 3.984 kB / 0.5123 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.396, allocations: 1.362 MB / 0.5137 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.396, allocations: 7.984 kB / 0.5137 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.3962, allocations: 64.19 kB / 0.5137 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006205/0.3969, allocations: 179 kB / 0.5139 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.3969, allocations: 15.98 kB / 0.5139 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.3993, allocations: 3.951 MB / 0.5178 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.3993, allocations: 8.031 kB / 0.5178 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.4004, allocations: 0.9127 MB / 0.5187 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001673/0.4005, allocations: 187.5 kB / 0.5189 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.4007, allocations: 12 kB / 0.5189 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.401, allocations: 11.98 kB / 0.5189 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.4011, allocations: 39.97 kB / 0.5189 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.4011, allocations: 19.94 kB / 0.5189 GB, free: 1.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009809/0.4021, allocations: 0.9625 MB / 0.5199 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4021, allocations: 0 / 0.5199 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001686/0.4038, allocations: 0.698 MB / 0.5206 GB, free: 15.95 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (30): * Single equations (assignments): 26 * 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.002599/0.4064, allocations: 2.189 MB / 0.5227 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.4078, allocations: 0.8613 MB / 0.5235 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4078, allocations: 0 / 0.5235 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004385/0.4083, allocations: 386.5 kB / 0.5239 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009756/0.4092, allocations: 202.9 kB / 0.5241 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.4202, allocations: 11.03 MB / 0.5349 GB, free: 4 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005831/0.4208, allocations: 1.099 MB / 0.5359 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009341/0.4218, allocations: 302.9 kB / 0.5362 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005586/0.4223, allocations: 0.5383 MB / 0.5368 GB, free: 14.04 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4224, allocations: 0 / 0.5368 GB, free: 14.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07405/0.4964, allocations: 32.02 MB / 0.568 GB, free: 14.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.67, allocations: 12 kB / 0.568 GB, free: 14.12 MB / 446.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)