Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000787/0.0007869, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008151/0.0008152, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001733/0.001733, allocations: 270.4 kB / 291.3 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.961/0.961, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003934, allocations: 12.59 kB / 0.598 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2154, allocations: 88.56 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006606/0.222, allocations: 3.577 MB / 0.688 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003213/0.2253, allocations: 1.492 MB / 0.6894 GB, free: 10.37 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.2255, allocations: 11.94 kB / 0.6894 GB, free: 10.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002652/0.2257, allocations: 63.5 kB / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005952/0.2264, allocations: 188.2 kB / 0.6897 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006129/0.227, allocations: 164.2 kB / 0.6898 GB, free: 9.957 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009049/0.2279, allocations: 0.6192 MB / 0.6904 GB, free: 9.336 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000643/0.2286, allocations: 388.8 kB / 0.6908 GB, free: 8.934 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.2289, allocations: 187.3 kB / 0.691 GB, free: 8.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.2294, allocations: 232.5 kB / 0.6912 GB, free: 8.523 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.828e-05/0.2295, allocations: 24 kB / 0.6912 GB, free: 8.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002535/0.2297, allocations: 79.89 kB / 0.6913 GB, free: 8.422 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.23, allocations: 127.7 kB / 0.6914 GB, free: 8.297 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.2301, allocations: 89.52 kB / 0.6915 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005627/0.2307, allocations: 399 kB / 0.6919 GB, free: 7.812 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2307, allocations: 0 / 0.6919 GB, free: 7.812 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.2307, allocations: 0 / 0.6919 GB, free: 7.812 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2307, allocations: 7.875 kB / 0.6919 GB, free: 7.805 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0013/0.232, allocations: 0.6162 MB / 0.6925 GB, free: 7.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.2321, allocations: 8.031 kB / 0.6925 GB, free: 7.133 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/0.2331, allocations: 119.4 kB / 0.6926 GB, free: 7.016 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.2336, allocations: 294.4 kB / 0.6929 GB, free: 6.688 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.012e-05/0.2337, allocations: 54.7 kB / 0.693 GB, free: 6.629 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.239e-05/0.2338, allocations: 28 kB / 0.693 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.235, allocations: 0.5046 MB / 0.6935 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.2351, allocations: 3.984 kB / 0.6935 GB, free: 6.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.2352, allocations: 19.98 kB / 0.6935 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.357e-05/0.2352, allocations: 28.98 kB / 0.6935 GB, free: 6.023 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.2363, allocations: 391.7 kB / 0.6939 GB, free: 5.641 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.2397, allocations: 2.212 MB / 0.6961 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009524/0.2406, allocations: 271.8 kB / 0.6963 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005252/0.2412, allocations: 156.8 kB / 0.6965 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.2412, allocations: 7.984 kB / 0.6965 GB, free: 2.762 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.2413, allocations: 38.56 kB / 0.6965 GB, free: 2.715 MB / 494.1 MB Notification: Performance of pre-optimization done (n=19): time 4.258e-06/0.2413, allocations: 4 kB / 0.6965 GB, free: 2.711 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001848/0.2432, allocations: 0.5846 MB / 0.6971 GB, free: 2.078 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.2432, allocations: 51.41 kB / 0.6971 GB, free: 2.016 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.2435, allocations: 232.9 kB / 0.6974 GB, free: 1.785 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.2435, allocations: 29.7 kB / 0.6974 GB, free: 1.75 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.2437, allocations: 211.7 kB / 0.6976 GB, free: 1.535 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.782e-05/0.2437, allocations: 63.09 kB / 0.6977 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/0.2438, allocations: 4 kB / 0.6977 GB, free: 1.469 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.2439, allocations: 330.8 kB / 0.698 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.2441, allocations: 91.94 kB / 0.6981 GB, free: 1.047 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.2444, allocations: 192.3 kB / 0.6983 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.2447, allocations: 120 kB / 0.6984 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.2447, allocations: 4 kB / 0.6984 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008282/0.2456, allocations: 388.6 kB / 0.6987 GB, free: 316 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.2457, allocations: 153.7 kB / 0.6989 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2457, allocations: 4 kB / 0.6989 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004775/0.2462, allocations: 113.6 kB / 0.699 GB, free: 0 / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.2464, allocations: 55.91 kB / 0.6991 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/0.2494, allocations: 2.824 MB / 0.7018 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.2496, allocations: 39.67 kB / 0.7018 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.2497, allocations: 8 kB / 0.7019 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.2497, allocations: 4 kB / 0.7019 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000713/0.2504, allocations: 310.3 kB / 0.7022 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2504, allocations: 4 kB / 0.7022 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002538/0.2507, allocations: 77.09 kB / 0.7022 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.2509, allocations: 63.91 kB / 0.7023 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.2527, allocations: 1.491 MB / 0.7038 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.2529, allocations: 35.77 kB / 0.7038 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.2529, allocations: 16.06 kB / 0.7038 GB, free: 10.68 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.2531, allocations: 245 kB / 0.704 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.848e-05/0.2532, allocations: 23.72 kB / 0.7041 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.64e-05/0.2532, allocations: 34.11 kB / 0.7041 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2532, allocations: 4 kB / 0.7041 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2533, allocations: 0 / 0.7041 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2533, allocations: 0 / 0.7041 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.2546, allocations: 0.8519 MB / 0.7049 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2546, allocations: 0 / 0.7049 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.2548, allocations: 39.91 kB / 0.705 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003349/0.2551, allocations: 101.7 kB / 0.7051 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.2551, allocations: 4 kB / 0.7051 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002435/0.2576, allocations: 2.808 MB / 0.7078 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.2576, allocations: 4.031 kB / 0.7078 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.2583, allocations: 412.4 kB / 0.7082 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.689e-05/0.2584, allocations: 124.7 kB / 0.7083 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/0.2585, allocations: 4 kB / 0.7083 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.2586, allocations: 15.94 kB / 0.7083 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.496e-05/0.2587, allocations: 27.97 kB / 0.7084 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.2587, allocations: 4 kB / 0.7084 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001421/0.2589, allocations: 164.5 kB / 0.7085 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2589, allocations: 0 / 0.7085 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005835/0.2595, allocations: 167.4 kB / 0.7087 GB, free: 5.258 MB / 0.4981 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001085/0.2596, allocations: 107.2 kB / 0.7088 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001708/0.2613, allocations: 0.7636 MB / 0.7095 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2613, allocations: 0 / 0.7095 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007317/0.262, allocations: 377.5 kB / 0.7099 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000418/0.2625, allocations: 59.22 kB / 0.71 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.2635, allocations: 0.6993 MB / 0.7106 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.2639, allocations: 0.8107 MB / 0.7114 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002071/0.2642, allocations: 54.28 kB / 0.7115 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.189e-05/0.2642, allocations: 23.38 kB / 0.7115 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.2642, allocations: 3.938 kB / 0.7115 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of Templates: time 0.008312/0.2725, allocations: 4.145 MB / 0.7156 GB, free: 14.13 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)