Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.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: translateModel(Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfWater") translateModel(Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001437/0.001437, allocations: 194.4 kB / 16.25 MB, free: 6.629 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.535/1.535, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3541/0.3541, allocations: 15.31 MB / 305.4 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 55.91 kB / 369.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1348, allocations: 53.62 MB / 423.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004832/0.1396, allocations: 3.76 MB / 427.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005499/0.1452, allocations: 4.694 MB / 431.9 MB, free: 6.172 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004892/0.1457, allocations: 7.938 kB / 431.9 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004431/0.1461, allocations: 99.34 kB / 432 MB, free: 6.066 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.1474, allocations: 401.7 kB / 432.4 MB, free: 5.672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.1488, allocations: 481.5 kB / 432.9 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006771/0.1495, allocations: 0.5728 MB / 433.4 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004238/0.1499, allocations: 372.3 kB / 433.8 MB, free: 4.254 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.1502, allocations: 299.1 kB / 434.1 MB, free: 3.961 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.1506, allocations: 314.8 kB / 434.4 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.625e-05/0.1506, allocations: 55.98 kB / 434.4 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001133/0.1518, allocations: 483.2 kB / 434.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1519, allocations: 123.5 kB / 435 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.1522, allocations: 278.8 kB / 435.3 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001445/0.1536, allocations: 0.9965 MB / 436.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1537, allocations: 0 / 436.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1537, allocations: 0 / 436.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.1537, allocations: 0 / 436.3 MB, free: 1.73 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001809/0.1555, allocations: 0.8615 MB / 437.2 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.707e-05/0.1556, allocations: 11.97 kB / 437.2 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004559/0.1561, allocations: 99.94 kB / 437.3 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.1567, allocations: 358.4 kB / 437.6 MB, free: 328 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/0.1567, allocations: 37.38 kB / 437.7 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.875e-05/0.1568, allocations: 52.36 kB / 437.7 MB, free: 240 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3196/0.4764, allocations: 446.8 kB / 438.2 MB, free: 53.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.156e-05/0.4766, allocations: 0.625 kB / 438.2 MB, free: 53.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.4766, allocations: 19.19 kB / 438.2 MB, free: 53.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.4766, allocations: 11.88 kB / 438.2 MB, free: 53.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008843/0.4775, allocations: 0.5104 MB / 438.7 MB, free: 53.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/0.4802, allocations: 1.539 MB / 440.2 MB, free: 52.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007607/0.481, allocations: 363.9 kB / 440.6 MB, free: 52.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.4812, allocations: 119.1 kB / 440.7 MB, free: 52.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002125/0.4833, allocations: 1.569 MB / 442.3 MB, free: 51.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.4834, allocations: 36.66 kB / 442.3 MB, free: 51.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.794e-06/0.4834, allocations: 0 / 442.3 MB, free: 51.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01455/0.4979, allocations: 2.34 MB / 444.7 MB, free: 51.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.4981, allocations: 61.83 kB / 444.7 MB, free: 51.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004575/0.4985, allocations: 294 kB / 445 MB, free: 51.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.4986, allocations: 33.27 kB / 445 MB, free: 51.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.4988, allocations: 271.7 kB / 445.3 MB, free: 50.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.4989, allocations: 113 kB / 445.4 MB, free: 50.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.499, allocations: 88.72 kB / 445.5 MB, free: 50.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.595e-05/0.4991, allocations: 344.1 kB / 445.8 MB, free: 50.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.4994, allocations: 137.6 kB / 446 MB, free: 50.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002869/0.4997, allocations: 257.4 kB / 446.2 MB, free: 50.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005092/0.5002, allocations: 428.7 kB / 446.6 MB, free: 50.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.5002, allocations: 0 / 446.6 MB, free: 50.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00389/0.5041, allocations: 0.8266 MB / 447.5 MB, free: 49.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.5041, allocations: 9.062 kB / 447.5 MB, free: 49.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.5041, allocations: 3.094 kB / 447.5 MB, free: 49.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003629/0.5078, allocations: 409.3 kB / 447.9 MB, free: 49.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.5081, allocations: 82.16 kB / 448 MB, free: 49.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006196/0.5143, allocations: 3.983 MB / 451.9 MB, free: 46.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005525/0.5149, allocations: 31.48 kB / 452 MB, free: 46.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-05/0.515, allocations: 25.64 kB / 452 MB, free: 46.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003487/0.5153, allocations: 169.2 kB / 452.2 MB, free: 46.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.5155, allocations: 35.81 kB / 452.2 MB, free: 46.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00469/0.5202, allocations: 0.8289 MB / 453 MB, free: 46.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.5202, allocations: 6.938 kB / 453 MB, free: 46.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.5202, allocations: 4.531 kB / 453 MB, free: 46.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5202, allocations: 3.281 kB / 453 MB, free: 46.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009105/0.5211, allocations: 0.6275 MB / 453.7 MB, free: 45.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.5211, allocations: 3.281 kB / 453.7 MB, free: 45.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.5213, allocations: 59.03 kB / 453.7 MB, free: 45.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004347/0.5257, allocations: 486.9 kB / 454.2 MB, free: 45.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.5257, allocations: 17.5 kB / 454.2 MB, free: 45.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006659/0.5324, allocations: 5.309 MB / 459.5 MB, free: 40.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.5325, allocations: 3.75 kB / 459.5 MB, free: 40.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005194/0.5377, allocations: 1.125 MB / 460.7 MB, free: 40.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.538, allocations: 114.8 kB / 460.8 MB, free: 40.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.579e-05/0.538, allocations: 10.92 kB / 460.8 MB, free: 40.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003205/0.5384, allocations: 20.61 kB / 460.8 MB, free: 40.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.5386, allocations: 44.16 kB / 460.8 MB, free: 40.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/0.5386, allocations: 18.39 kB / 460.9 MB, free: 40.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002592/0.5389, allocations: 200.1 kB / 461.1 MB, free: 40.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5389, allocations: 3.25 kB / 461.1 MB, free: 40.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001046/0.5399, allocations: 241 kB / 461.3 MB, free: 40.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.amountOfBonds,liquidWater.logn) * 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 (29): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006162/0.5406, allocations: 281.5 kB / 461.6 MB, free: 39.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001446/0.542, allocations: 0.7072 MB / 462.3 MB, free: 39.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.542, allocations: 0 / 462.3 MB, free: 39.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008072/0.5429, allocations: 0.6239 MB / 462.9 MB, free: 39.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007433/0.5436, allocations: 110.8 kB / 463 MB, free: 39.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001917/0.5455, allocations: 1.205 MB / 464.2 MB, free: 38.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.5459, allocations: 0.8287 MB / 465 MB, free: 37.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003139/0.5463, allocations: 78.06 kB / 465.1 MB, free: 37.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.5464, allocations: 61.91 kB / 465.2 MB, free: 37.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.633e-06/0.5464, allocations: 0 / 465.2 MB, free: 37.52 MB / 366.1 MB Notification: Performance of Templates: time 0.03395/0.5803, allocations: 11.26 MB / 476.4 MB, free: 36.7 MB / 366.1 MB make -j1 -f Chemical_Chemical.Examples.HeatingOfWater.makefile Failed to read output from testmodel.py, exit status != 0: 0.5824471856467426 0.603816168 0.447194917 Traceback (most recent call last): File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/./testmodel.py", line 440, in resFile = "%s_res.%s" % (conf["fileName"], outputFormat if not shared.isFMPy(fmisimulator) else 'csv') File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/shared.py", line 98, in isFMPy return 'fmpy' in fmisimulator TypeError: argument of type 'NoneType' is not iterable