Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.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.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009363/0.0009361, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005381/0.005381, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.336/1.336, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001748/0.001748, allocations: 267.1 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9226/0.9226, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003929, allocations: 16.08 kB / 0.5986 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1718, allocations: 88.55 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02177/0.1936, allocations: 21.69 MB / 0.7063 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02383/0.2175, allocations: 17.39 MB / 0.7233 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003237/0.2207, allocations: 99.44 kB / 0.7234 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002451/0.2232, allocations: 0.5814 MB / 0.7239 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01093/0.2342, allocations: 3.211 MB / 0.7271 GB, free: 4.023 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003851/0.238, allocations: 1.177 MB / 0.7282 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.009619/0.2477, allocations: 7.058 MB / 0.7351 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004008/0.2517, allocations: 2.558 MB / 0.7376 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004153/0.2559, allocations: 2.046 MB / 0.7396 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004368/0.2603, allocations: 2.288 MB / 0.7418 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0008926/0.2612, allocations: 176 kB / 0.742 GB, free: 4.594 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002569/0.2638, allocations: 1.061 MB / 0.7431 GB, free: 3.531 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.2651, allocations: 0.969 MB / 0.744 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002893/0.268, allocations: 1.789 MB / 0.7457 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005821/0.2738, allocations: 4.943 MB / 0.7506 GB, free: 11.79 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.2739, allocations: 0 / 0.7506 GB, free: 11.79 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.116e-06/0.2739, allocations: 4 kB / 0.7506 GB, free: 11.79 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001917/0.2741, allocations: 0 / 0.7506 GB, free: 11.79 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01016/0.2842, allocations: 4.072 MB / 0.7546 GB, free: 7.605 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.2843, allocations: 12.03 kB / 0.7546 GB, free: 7.594 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01698/0.3013, allocations: 3.363 MB / 0.7578 GB, free: 4.223 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004488/0.3058, allocations: 2.092 MB / 0.7599 GB, free: 2.062 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004815/0.3063, allocations: 466.3 kB / 0.7603 GB, free: 1.543 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001378/0.3077, allocations: 239.9 kB / 0.7606 GB, free: 1.309 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.3199, allocations: 4.877 MB / 0.7653 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.987e-05/0.32, allocations: 0 / 0.7653 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003421/0.3204, allocations: 104 kB / 0.7654 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/0.3206, allocations: 176.8 kB / 0.7656 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/0.3351, allocations: 5.315 MB / 0.7708 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3552/0.6903, allocations: 14.58 MB / 0.785 GB, free: 79.3 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.7006, allocations: 3.69 MB / 0.7886 GB, free: 78.58 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003903/0.7046, allocations: 1.594 MB / 0.7902 GB, free: 78.13 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.7047, allocations: 23.3 kB / 0.7902 GB, free: 78.13 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004641/0.7094, allocations: 1.919 MB / 0.7921 GB, free: 77.52 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.396e-06/0.7094, allocations: 3.828 kB / 0.7921 GB, free: 77.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1339/0.8433, allocations: 34.13 MB / 0.8254 GB, free: 61.93 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.8435, allocations: 0.4896 MB / 0.8259 GB, free: 61.33 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.8462, allocations: 2.296 MB / 0.8281 GB, free: 59.02 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005309/0.8467, allocations: 81.64 kB / 0.8282 GB, free: 58.93 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008772/0.8476, allocations: 1.433 MB / 0.8296 GB, free: 57.49 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006526/0.8482, allocations: 0.8204 MB / 0.8304 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002862/0.8485, allocations: 186.4 kB / 0.8306 GB, free: 56.49 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.853e-05/0.8486, allocations: 305.1 kB / 0.8309 GB, free: 56.19 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004914/0.8535, allocations: 2.116 MB / 0.8329 GB, free: 54.07 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005158/0.8587, allocations: 2.411 MB / 0.8353 GB, free: 51.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009981/0.8687, allocations: 4.552 MB / 0.8397 GB, free: 46.89 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/0.8688, allocations: 3.938 kB / 0.8398 GB, free: 46.88 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01776/0.8865, allocations: 6.904 MB / 0.8465 GB, free: 39.89 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.14e-05/0.8866, allocations: 150.2 kB / 0.8466 GB, free: 39.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.8867, allocations: 9.125 kB / 0.8466 GB, free: 39.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009081/0.8958, allocations: 2.926 MB / 0.8495 GB, free: 36.78 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/0.8987, allocations: 0.5741 MB / 0.8501 GB, free: 36.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03298/0.9317, allocations: 17.37 MB / 0.867 GB, free: 18.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004087/0.9358, allocations: 420 kB / 0.8674 GB, free: 18.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003579/0.9362, allocations: 83.98 kB / 0.8675 GB, free: 18.15 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * 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 {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001354/0.9376, allocations: 0.7134 MB / 0.8682 GB, free: 17.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005826/0.9382, allocations: 332.1 kB / 0.8685 GB, free: 17.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007807/0.939, allocations: 380.1 kB / 0.8689 GB, free: 16.72 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.939, allocations: 27.98 kB / 0.8689 GB, free: 16.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.136e-05/0.939, allocations: 12.88 kB / 0.8689 GB, free: 16.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.9391, allocations: 11.95 kB / 0.8689 GB, free: 16.67 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00388/0.943, allocations: 3.633 MB / 0.8725 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.943, allocations: 0 / 0.8725 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002522/0.9455, allocations: 0.4955 MB / 0.873 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00931/0.9548, allocations: 2.866 MB / 0.8758 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004467/0.9553, allocations: 58.03 kB / 0.8758 GB, free: 9.609 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0362/0.9915, allocations: 17.16 MB / 0.8926 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9916, allocations: 3.938 kB / 0.8926 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02/1.012, allocations: 6.549 MB / 0.899 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/1.013, allocations: 0.6922 MB / 0.8996 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005612/1.014, allocations: 48 kB / 0.8997 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0035/1.017, allocations: 419.4 kB / 0.9001 GB, free: 440 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001181/1.019, allocations: 346.7 kB / 0.9004 GB, free: 96 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002024/1.019, allocations: 67.97 kB / 0.9005 GB, free: 28 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002182/1.021, allocations: 1.532 MB / 0.902 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.615e-06/1.021, allocations: 0 / 0.902 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002707/1.024, allocations: 1.051 MB / 0.903 GB, free: 13.45 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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 {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003896/1.024, allocations: 167.8 kB / 0.9032 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0256/1.05, allocations: 6.825 MB / 0.9098 GB, free: 6.352 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/1.05, allocations: 4 kB / 0.9098 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01883/1.069, allocations: 4.237 MB / 0.914 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005115/1.074, allocations: 1.05 MB / 0.915 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/1.089, allocations: 8.134 MB / 0.9229 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/1.091, allocations: 2.227 MB / 0.9251 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002511/1.094, allocations: 0.5138 MB / 0.9256 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006779/1.094, allocations: 175.4 kB / 0.9258 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of SimCode: time 8.42e-07/1.094, allocations: 0 / 0.9258 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of Templates: time 0.1147/1.209, allocations: 72.11 MB / 0.9962 GB, free: 14.69 MB / 0.6856 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)