Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 108.7 kB / 15.99 MB, free: 6.359 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.001216/0.001216, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.239/1.239, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002081/0.002081, allocations: 290.8 kB / 291 MB, free: 14.71 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9224/0.9224, allocations: 169.2 MB / 0.4985 GB, free: 4.742 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 88.3 kB / 0.5953 GB, free: 4.469 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1686, allocations: 86.97 MB / 0.6803 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.005301/0.1739, allocations: 3.881 MB / 0.6841 GB, free: 9.594 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1766, allocations: 1.761 MB / 0.6858 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002113/0.1768, allocations: 4 kB / 0.6858 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.178, allocations: 422.6 kB / 0.6862 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0005051/0.1785, allocations: 231 kB / 0.6864 GB, free: 7.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005523/0.1791, allocations: 223.7 kB / 0.6866 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0005159/0.1797, allocations: 0.4984 MB / 0.6871 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005967/0.1803, allocations: 396.9 kB / 0.6875 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002121/0.1805, allocations: 195.2 kB / 0.6877 GB, free: 5.879 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003553/0.1808, allocations: 251.1 kB / 0.6879 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.48e-05/0.1809, allocations: 28 kB / 0.6879 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002971/0.1812, allocations: 183.6 kB / 0.6881 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.1813, allocations: 139.5 kB / 0.6883 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.1815, allocations: 171.1 kB / 0.6884 GB, free: 5.121 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.1819, allocations: 383.1 kB / 0.6888 GB, free: 4.746 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1819, allocations: 0 / 0.6888 GB, free: 4.746 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1819, allocations: 4 kB / 0.6888 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.156e-06/0.1819, allocations: 0 / 0.6888 GB, free: 4.742 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001099/0.183, allocations: 0.6549 MB / 0.6894 GB, free: 4.035 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.1831, allocations: 12.03 kB / 0.6894 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005289/0.1836, allocations: 92.41 kB / 0.6895 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.1839, allocations: 284.3 kB / 0.6898 GB, free: 3.617 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.184, allocations: 24.97 kB / 0.6898 GB, free: 3.594 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.52e-05/0.184, allocations: 36.34 kB / 0.6899 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007694/0.1848, allocations: 490 kB / 0.6903 GB, free: 3.051 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1848, allocations: 0 / 0.6903 GB, free: 3.051 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.1849, allocations: 12 kB / 0.6903 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.467e-05/0.1849, allocations: 40.62 kB / 0.6904 GB, free: 3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006799/0.1856, allocations: 362.2 kB / 0.6907 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.1876, allocations: 2.048 MB / 0.6927 GB, free: 404 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005239/0.1882, allocations: 214 kB / 0.6929 GB, free: 184 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003517/0.1885, allocations: 158.6 kB / 0.6931 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.1886, allocations: 7.938 kB / 0.6931 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/0.1886, allocations: 30.56 kB / 0.6931 GB, free: 15.98 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.413e-06/0.1886, allocations: 0 / 0.6931 GB, free: 15.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.001028/0.1896, allocations: 423.1 kB / 0.6935 GB, free: 15.54 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.1897, allocations: 51.41 kB / 0.6936 GB, free: 15.47 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.1899, allocations: 262.6 kB / 0.6938 GB, free: 15.21 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.19, allocations: 33.64 kB / 0.6938 GB, free: 15.18 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.1901, allocations: 211.7 kB / 0.694 GB, free: 14.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.1901, allocations: 63.11 kB / 0.6941 GB, free: 14.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/0.1902, allocations: 65.88 kB / 0.6942 GB, free: 14.83 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1904, allocations: 330.8 kB / 0.6945 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.1906, allocations: 105.8 kB / 0.6946 GB, free: 14.39 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003027/0.1909, allocations: 199.6 kB / 0.6948 GB, free: 14.14 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005182/0.1915, allocations: 316.3 kB / 0.6951 GB, free: 13.79 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.1915, allocations: 4 kB / 0.6951 GB, free: 13.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007165/0.1922, allocations: 346.1 kB / 0.6954 GB, free: 13.44 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1922, allocations: 8 kB / 0.6954 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1922, allocations: 4 kB / 0.6954 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001992/0.1924, allocations: 44.77 kB / 0.6955 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.1927, allocations: 76.02 kB / 0.6955 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.194, allocations: 1.43 MB / 0.6969 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.1943, allocations: 43.66 kB / 0.697 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.1943, allocations: 16 kB / 0.697 GB, free: 11.67 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003627/0.1947, allocations: 220.7 kB / 0.6972 GB, free: 11.45 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002852/0.195, allocations: 209.6 kB / 0.6974 GB, free: 11.19 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004996/0.1955, allocations: 315.1 kB / 0.6977 GB, free: 10.83 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.268e-06/0.1955, allocations: 3.984 kB / 0.6977 GB, free: 10.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006604/0.1962, allocations: 337.3 kB / 0.698 GB, free: 10.49 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.1962, allocations: 14.81 kB / 0.698 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1962, allocations: 4 kB / 0.698 GB, free: 10.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.883e-06/0.1962, allocations: 8 kB / 0.6981 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.1965, allocations: 75.83 kB / 0.6981 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1965, allocations: 4 kB / 0.6981 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002395/0.1967, allocations: 35.81 kB / 0.6982 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.1968, allocations: 12 kB / 0.6982 GB, free: 10.34 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.1969, allocations: 205.4 kB / 0.6984 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.197, allocations: 27.62 kB / 0.6984 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.795e-05/0.197, allocations: 34.17 kB / 0.6984 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.197, allocations: 4 kB / 0.6984 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.197, allocations: 0 / 0.6984 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.197, allocations: 0 / 0.6984 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.1981, allocations: 0.7499 MB / 0.6992 GB, free: 9.234 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1981, allocations: 0 / 0.6992 GB, free: 9.234 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.1983, allocations: 39.91 kB / 0.6992 GB, free: 9.195 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.1984, allocations: 32.91 kB / 0.6992 GB, free: 9.16 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.1985, allocations: 4 kB / 0.6992 GB, free: 9.156 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000945/0.1994, allocations: 1.426 MB / 0.7006 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-06/0.1994, allocations: 7.938 kB / 0.7006 GB, free: 7.586 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005725/0.2, allocations: 375.8 kB / 0.701 GB, free: 7.195 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.462e-05/0.2001, allocations: 112.8 kB / 0.7011 GB, free: 7.066 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.2001, allocations: 8 kB / 0.7011 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.2003, allocations: 23.97 kB / 0.7011 GB, free: 7.035 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.2004, allocations: 15.92 kB / 0.7011 GB, free: 7.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.2004, allocations: 15.94 kB / 0.7012 GB, free: 7.004 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001638/0.2006, allocations: 182 kB / 0.7013 GB, free: 6.832 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2006, allocations: 0 / 0.7013 GB, free: 6.832 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005431/0.2011, allocations: 143.6 kB / 0.7015 GB, free: 6.691 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001091/0.2012, allocations: 99.25 kB / 0.7016 GB, free: 6.582 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001003/0.2023, allocations: 0.4993 MB / 0.7021 GB, free: 6.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2023, allocations: 0 / 0.7021 GB, free: 6.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003381/0.2026, allocations: 222.6 kB / 0.7023 GB, free: 5.84 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004809/0.2031, allocations: 83.67 kB / 0.7023 GB, free: 5.766 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009121/0.204, allocations: 0.71 MB / 0.703 GB, free: 5.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.2044, allocations: 0.8035 MB / 0.7038 GB, free: 4.188 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.07e-05/0.2045, allocations: 27.42 kB / 0.7039 GB, free: 4.16 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.2045, allocations: 0 / 0.7039 GB, free: 4.16 MB / 0.545 GB Notification: Performance of Templates: time 0.2524/0.4569, allocations: 4.759 MB / 0.7085 GB, free: 60.36 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)