Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.WeeklySchedule.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.001285/0.001285, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 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.001433/0.001433, allocations: 214.1 kB / 23.04 MB, free: 5.074 MB / 14.72 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 1.44/1.44, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002532/0.002532, allocations: 295.1 kB / 313.5 MB, free: 2.812 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.233/1.233, allocations: 180.6 MB / 0.5377 GB, free: 12.92 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Utilities.IO.Files.WeeklySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_WeeklySchedule",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.WeeklySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_WeeklySchedule",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00284/0.00284, allocations: 103.2 kB / 0.7404 GB, free: 28.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.173, allocations: 95.38 MB / 0.8335 GB, free: 8.625 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.WeeklySchedule): time 0.002711/0.1757, allocations: 1.377 MB / 0.8348 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0001424/0.1758, allocations: 31.89 kB / 0.8349 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.243e-05/0.1759, allocations: 3.938 kB / 0.8349 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.176, allocations: 15.91 kB / 0.8349 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.1761, allocations: 11.94 kB / 0.8349 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 3.607e-06/0.1761, allocations: 0 / 0.8349 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 5.883e-05/0.1762, allocations: 19.92 kB / 0.8349 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.1762, allocations: 7.938 kB / 0.8349 GB, free: 7.145 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.881e-05/0.1763, allocations: 7.984 kB / 0.8349 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.549e-05/0.1763, allocations: 15.92 kB / 0.835 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.1763, allocations: 0 / 0.835 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.281e-05/0.1764, allocations: 8 kB / 0.835 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.728e-05/0.1764, allocations: 3.938 kB / 0.835 GB, free: 7.109 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.389e-05/0.1764, allocations: 15.92 kB / 0.835 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 8.811e-05/0.1765, allocations: 20.19 kB / 0.835 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1765, allocations: 3.938 kB / 0.835 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1765, allocations: 0 / 0.835 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.1765, allocations: 4 kB / 0.835 GB, free: 7.066 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003044/0.1768, allocations: 258.2 kB / 0.8353 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.1769, allocations: 13.34 kB / 0.8353 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.444e-05/0.1769, allocations: 192 / 0.8353 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.561e-05/0.177, allocations: 30.75 kB / 0.8353 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.177, allocations: 8.891 kB / 0.8353 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.1771, allocations: 114.5 kB / 0.8354 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.585e-06/0.1771, allocations: 384 / 0.8354 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.1771, allocations: 8.312 kB / 0.8354 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.209e-05/0.1772, allocations: 49.98 kB / 0.8355 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.982e-06/0.1772, allocations: 0 / 0.8355 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.011e-06/0.1772, allocations: 0 / 0.8355 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.1773, allocations: 8 kB / 0.8355 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.125e-05/0.1773, allocations: 4 kB / 0.8355 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002486/0.1775, allocations: 208.1 kB / 0.8357 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.092e-05/0.1776, allocations: 46.44 kB / 0.8357 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.077e-05/0.1777, allocations: 16.86 kB / 0.8357 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.1777, allocations: 3.938 kB / 0.8357 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.1777, allocations: 34.64 kB / 0.8358 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1777, allocations: 0 / 0.8358 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of matching and sorting (n=5): time 0.000428/0.1781, allocations: 203.4 kB / 0.836 GB, free: 5.918 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.1782, allocations: 55.34 kB / 0.836 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.1783, allocations: 117.8 kB / 0.8361 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1783, allocations: 29.7 kB / 0.8362 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.177e-05/0.1783, allocations: 84.14 kB / 0.8362 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.1784, allocations: 15.86 kB / 0.8363 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.1784, allocations: 25.7 kB / 0.8363 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1785, allocations: 314.8 kB / 0.8366 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.636e-05/0.1786, allocations: 15.92 kB / 0.8366 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.46e-05/0.1786, allocations: 25.72 kB / 0.8366 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.998e-05/0.1787, allocations: 41.64 kB / 0.8367 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.1787, allocations: 0 / 0.8367 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001117/0.1788, allocations: 69.61 kB / 0.8367 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.1788, allocations: 4 kB / 0.8367 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1788, allocations: 0 / 0.8367 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.1788, allocations: 0 / 0.8367 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.125e-05/0.1789, allocations: 8 kB / 0.8367 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1789, allocations: 3.984 kB / 0.8367 GB, free: 5.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.072e-05/0.1789, allocations: 12.03 kB / 0.8368 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.1789, allocations: 0 / 0.8368 GB, free: 5.047 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.962e-05/0.179, allocations: 114.4 kB / 0.8369 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.237e-05/0.179, allocations: 7.953 kB / 0.8369 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.1792, allocations: 73.67 kB / 0.8369 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1792, allocations: 0 / 0.8369 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1792, allocations: 0 / 0.8369 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1792, allocations: 0 / 0.8369 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000346/0.1795, allocations: 297.9 kB / 0.8372 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1795, allocations: 320 / 0.8372 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.374e-05/0.1795, allocations: 11.98 kB / 0.8372 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1795, allocations: 4 kB / 0.8372 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.1796, allocations: 4 kB / 0.8372 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1796, allocations: 0 / 0.8372 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.1796, allocations: 7.922 kB / 0.8373 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.1797, allocations: 163.4 kB / 0.8374 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.769e-06/0.1797, allocations: 7.984 kB / 0.8374 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.1797, allocations: 0 / 0.8374 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.196e-05/0.1798, allocations: 0 / 0.8374 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.1798, allocations: 11.88 kB / 0.8374 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1798, allocations: 0 / 0.8374 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.65e-05/0.1799, allocations: 91.27 kB / 0.8375 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1799, allocations: 0 / 0.8375 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002326/0.1801, allocations: 19.89 kB / 0.8375 GB, free: 4.16 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005936/0.1807, allocations: 0.7264 MB / 0.8382 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001057/0.1808, allocations: 35.92 kB / 0.8383 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1808, allocations: 4.062 kB / 0.8383 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.46e-05/0.1808, allocations: 11.98 kB / 0.8383 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.181, allocations: 13.66 kB / 0.8383 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1822, allocations: 1.301 MB / 0.8396 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1825, allocations: 0.6846 MB / 0.8402 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001149/0.1826, allocations: 15.98 kB / 0.8403 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.1827, allocations: 19.42 kB / 0.8403 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.1827, allocations: 4 kB / 0.8403 GB, free: 1.223 MB / 0.5762 GB Error: Template error: A template call failed (/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics). " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 4.1570539500098675] Failed to read output from testmodel.py, exit status != 0: 0.20476530096493661 0.221002468 0.041365512 Calling exit ...