Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.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.0006586/0.0006586, allocations: 76.16 kB / 9.861 MB, free: 0.8281 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008947/0.001553, allocations: 443.8 kB / 10.29 MB, free: 404 kB / 10.45 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.001493/0.001493, allocations: 141.2 kB / 11.17 MB, free: 3 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0016/0.003093, allocations: 475.6 kB / 11.64 MB, free: 2.531 MB / 13.93 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.9317/0.9317, allocations: 177.2 MB / 189.5 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08336/1.015, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.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.08203/0.08203, allocations: 17.37 MB / 261.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.008864/0.0909, allocations: 6.935 MB / 268.2 MB, free: 6.516 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: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me_cs",version="2.0+3.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me_cs",version="2.0+3.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.123e-06/1.123e-06, allocations: 0 / 269.4 MB, free: 5.293 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.153e-06/8.276e-06, allocations: 2.312 kB / 269.4 MB, free: 5.289 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1328:7-1328: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/Boundaries.mo:1328:7-1328: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.WaterElectrolysis): time 0.1238/0.1238, allocations: 16.83 MB / 286.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.1414, allocations: 16.18 MB / 302.5 MB, free: 1.055 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001548/0.143, allocations: 54.16 kB / 302.5 MB, free: 1.039 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002545/0.1455, allocations: 1.448 MB / 304 MB, free: 20 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00263/0.1482, allocations: 1.62 MB / 305.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00513/0.1533, allocations: 4.492 MB / 310.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004335/0.1576, allocations: 5.115 MB / 315.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001218/0.1589, allocations: 1.291 MB / 316.5 MB, free: 3.516 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002696/0.1615, allocations: 3.258 MB / 319.7 MB, free: 204 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001732/0.1633, allocations: 1.94 MB / 321.7 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004196/0.1637, allocations: 0.5273 MB / 322.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00276/0.1665, allocations: 1.802 MB / 324 MB, free: 11.92 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007016/0.1672, allocations: 1.305 MB / 325.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.1683, allocations: 1.485 MB / 326.8 MB, free: 9.125 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005191/0.1735, allocations: 5.633 MB / 332.4 MB, free: 3.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.201e-05/0.1735, allocations: 0 / 332.4 MB, free: 3.473 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1735, allocations: 0 / 332.4 MB, free: 3.473 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.573e-05/0.1736, allocations: 0 / 332.4 MB, free: 3.473 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1492 * Number of variables: 1492 Notification: Performance of Generate backend data structure: time 0.006046/0.1796, allocations: 6.9 MB / 339.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1796, allocations: 8.031 kB / 339.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005105/0.1801, allocations: 0.7613 MB / 340.1 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001978/0.1821, allocations: 1.75 MB / 341.9 MB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.1843, allocations: 1.728 MB / 343.6 MB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004007/0.1847, allocations: 0.7845 MB / 344.4 MB, free: 7.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003809/0.1851, allocations: 492.3 kB / 344.8 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004623/0.1897, allocations: 5.418 MB / 350.3 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-05/0.1898, allocations: 4.172 kB / 350.3 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002246/0.19, allocations: 211.8 kB / 350.5 MB, free: 1.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004108/0.1904, allocations: 0.6435 MB / 351.1 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004288/0.1947, allocations: 5.291 MB / 356.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02203/0.2167, allocations: 19.55 MB / 376 MB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.2186, allocations: 1.05 MB / 377 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.2197, allocations: 0.5381 MB / 377.5 MB, free: 5.875 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008111/0.2278, allocations: 6.482 MB / 384 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.2279, allocations: 48.56 kB / 384.1 MB, free: 15.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=222): time 3.587e-06/0.2279, allocations: 4 kB / 384.1 MB, free: 15.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=297): time 0.06476/0.2926, allocations: 15.16 MB / 399.2 MB, free: 72 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01089/0.3035, allocations: 6.831 MB / 406.1 MB, free: 8.848 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/0.307, allocations: 4.28 MB / 410.4 MB, free: 4.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003994/0.3074, allocations: 73.7 kB / 410.4 MB, free: 4.512 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006975/0.3081, allocations: 1.475 MB / 411.9 MB, free: 3.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007482/0.3088, allocations: 1.042 MB / 412.9 MB, free: 1.969 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/0.3102, allocations: 0.7056 MB / 413.6 MB, free: 1.254 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.3103, allocations: 309.1 kB / 413.9 MB, free: 0.9492 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002215/0.3125, allocations: 1.002 MB / 414.9 MB, free: 15.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00265/0.3152, allocations: 1.739 MB / 416.7 MB, free: 13.91 MB / 410.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start (0.0 = 96485.33212331001 * electrone.definition.data.z * electrone.v_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.008905/0.3241, allocations: 5.32 MB / 422 MB, free: 8.219 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.3241, allocations: 4 kB / 422 MB, free: 8.215 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.009208/0.3333, allocations: 3.987 MB / 426 MB, free: 4.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3333, allocations: 12 kB / 426 MB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003115/0.3336, allocations: 143.9 kB / 426.2 MB, free: 4.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008899/0.3425, allocations: 3.257 MB / 429.4 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1281/0.4706, allocations: 1.802 MB / 431.2 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009871/0.4805, allocations: 9.544 MB / 440.8 MB, free: 96.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002966/0.4834, allocations: 141.4 kB / 440.9 MB, free: 96.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008255/0.4843, allocations: 481.8 kB / 441.4 MB, free: 96.87 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 2 (reaction.processDefinition.data.phase,reaction.processDefinition.SelfClustering) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 313 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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): 4 systems {(4,3,62.5%), (1,20,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001722/0.486, allocations: 304.2 kB / 441.7 MB, free: 96.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/0.4874, allocations: 388.1 kB / 442 MB, free: 96.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/0.4994, allocations: 6.934 MB / 449 MB, free: 96.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006589/0.506, allocations: 3.009 MB / 452 MB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.506, allocations: 5.469 kB / 452 MB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.506, allocations: 14.39 kB / 452 MB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/0.5187, allocations: 8.327 MB / 460.3 MB, free: 94.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/0.5187, allocations: 9.312 kB / 460.3 MB, free: 94.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003419/0.5221, allocations: 0.9418 MB / 461.3 MB, free: 94.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000956/0.5231, allocations: 0.5849 MB / 461.9 MB, free: 94.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01067/0.5337, allocations: 3.371 MB / 465.2 MB, free: 93.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004426/0.5342, allocations: 99.59 kB / 465.3 MB, free: 93.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007967/0.5422, allocations: 9.847 MB / 475.2 MB, free: 82.88 MB / 410.7 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001738/0.5439, allocations: 2.365 MB / 477.5 MB, free: 80.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00801/0.5519, allocations: 4.409 MB / 482 MB, free: 75.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008255/0.5527, allocations: 63.95 kB / 482 MB, free: 75.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.5539, allocations: 71.97 kB / 482.1 MB, free: 75.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005412/0.5545, allocations: 272.6 kB / 482.4 MB, free: 75.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002371/0.5547, allocations: 179.9 kB / 482.5 MB, free: 75.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001899/0.5566, allocations: 2.212 MB / 484.7 MB, free: 73.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5566, allocations: 2.906 kB / 484.7 MB, free: 73.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003376/0.56, allocations: 1.886 MB / 486.6 MB, free: 71.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 7 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,reaction.rr,anode.temperature,cathode.temperature) * Number of discrete variables: 8 ($cse39.data.phase,$cse39.SelfClustering,$cse40.data.phase,$cse40.SelfClustering,reaction.processDefinition.data.phase,$cse48,$cse34,$cse27) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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): 3 systems {(1,20,100.0%), (1,1,100.0%), (4,3,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(6,22), (9,11), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008207/0.5682, allocations: 5.343 MB / 492 MB, free: 66.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005881/0.5741, allocations: 3.336 MB / 495.3 MB, free: 62.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-05/0.5741, allocations: 53.81 kB / 495.4 MB, free: 62.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002509/0.5766, allocations: 2.123 MB / 497.5 MB, free: 60.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003118/0.5797, allocations: 1.705 MB / 499.2 MB, free: 59.13 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4091:9-4091:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:743:5-743:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.010254235006869]