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: "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.001009, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001005/0.001005, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.246/1.246, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001999/0.001999, allocations: 274.9 kB / 290.2 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8932/0.8932, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 90.47 kB / 0.5946 GB, free: 28.45 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1628, allocations: 86.98 MB / 0.6795 GB, free: 1.098 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02199/0.1848, allocations: 22.43 MB / 0.7014 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02175/0.2066, allocations: 17.61 MB / 0.7186 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.2087, allocations: 103.4 kB / 0.7187 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.007852/0.2166, allocations: 3.912 MB / 0.7226 GB, free: 4.926 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.006772/0.2234, allocations: 3.199 MB / 0.7257 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002312/0.2257, allocations: 1.181 MB / 0.7268 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.006441/0.2322, allocations: 7.06 MB / 0.7337 GB, free: 9.473 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002854/0.235, allocations: 2.507 MB / 0.7362 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002722/0.2377, allocations: 2.179 MB / 0.7383 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002716/0.2405, allocations: 2.451 MB / 0.7407 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0004333/0.2409, allocations: 228 kB / 0.7409 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.243, allocations: 1.107 MB / 0.742 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0009634/0.244, allocations: 1.063 MB / 0.743 GB, free: 15.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.2458, allocations: 1.861 MB / 0.7449 GB, free: 13.97 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004605/0.2504, allocations: 5.069 MB / 0.7498 GB, free: 8.887 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2504, allocations: 0 / 0.7498 GB, free: 8.887 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.595e-06/0.2504, allocations: 0 / 0.7498 GB, free: 8.887 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.575e-05/0.2505, allocations: 3.938 kB / 0.7498 GB, free: 8.883 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.00888/0.2594, allocations: 4.597 MB / 0.7543 GB, free: 4.172 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.2594, allocations: 16.02 kB / 0.7543 GB, free: 4.156 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004174/0.2599, allocations: 362.3 kB / 0.7547 GB, free: 3.793 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01501/0.2749, allocations: 3.265 MB / 0.7578 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003652/0.2785, allocations: 2.099 MB / 0.7599 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004129/0.279, allocations: 470 kB / 0.7603 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004063/0.2794, allocations: 232 kB / 0.7606 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009808/0.2892, allocations: 4.806 MB / 0.7653 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/0.2893, allocations: 4 kB / 0.7653 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002964/0.2896, allocations: 108 kB / 0.7654 GB, free: 8.539 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001793/0.2897, allocations: 168.8 kB / 0.7655 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/0.3015, allocations: 5.198 MB / 0.7706 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2533/0.5549, allocations: 14.48 MB / 0.7847 GB, free: 79.49 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008911/0.5638, allocations: 3.392 MB / 0.7881 GB, free: 78.45 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003116/0.567, allocations: 1.465 MB / 0.7895 GB, free: 78.01 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.5671, allocations: 31.8 kB / 0.7895 GB, free: 78.01 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003688/0.5708, allocations: 1.795 MB / 0.7913 GB, free: 77.39 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 4.018e-06/0.5708, allocations: 0 / 0.7913 GB, free: 77.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.108/0.6788, allocations: 28.22 MB / 0.8188 GB, free: 65.73 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.6789, allocations: 498.8 kB / 0.8193 GB, free: 65.16 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002197/0.6811, allocations: 2.301 MB / 0.8216 GB, free: 63.96 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001966/0.6813, allocations: 75.42 kB / 0.8216 GB, free: 63.89 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007182/0.682, allocations: 1.431 MB / 0.823 GB, free: 62.58 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004501/0.6825, allocations: 0.8224 MB / 0.8238 GB, free: 61.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006898/0.6832, allocations: 416.5 kB / 0.8242 GB, free: 61.35 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.237e-05/0.6832, allocations: 301.1 kB / 0.8245 GB, free: 61.05 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003997/0.6872, allocations: 1.933 MB / 0.8264 GB, free: 59.12 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004114/0.6914, allocations: 2.223 MB / 0.8286 GB, free: 56.81 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007821/0.6992, allocations: 4.169 MB / 0.8326 GB, free: 52.51 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.6992, allocations: 0 / 0.8326 GB, free: 52.51 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01486/0.7141, allocations: 6.54 MB / 0.839 GB, free: 45.88 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.7141, allocations: 148.5 kB / 0.8392 GB, free: 45.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.7141, allocations: 8 kB / 0.8392 GB, free: 45.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008456/0.7226, allocations: 2.928 MB / 0.842 GB, free: 42.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/0.725, allocations: 495.1 kB / 0.8425 GB, free: 42.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02978/0.7547, allocations: 17.33 MB / 0.8594 GB, free: 24.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00372/0.7585, allocations: 323.6 kB / 0.8597 GB, free: 24.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/0.7588, allocations: 87.97 kB / 0.8598 GB, free: 24.38 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.00119/0.76, allocations: 0.71 MB / 0.8605 GB, free: 23.66 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004035/0.7604, allocations: 332.1 kB / 0.8608 GB, free: 23.33 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005435/0.7609, allocations: 384.1 kB / 0.8612 GB, free: 22.95 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.7609, allocations: 27.94 kB / 0.8612 GB, free: 22.92 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.59e-05/0.761, allocations: 10.31 kB / 0.8612 GB, free: 22.91 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.761, allocations: 15.95 kB / 0.8612 GB, free: 22.89 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.7642, allocations: 3.626 MB / 0.8648 GB, free: 19.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.7643, allocations: 0 / 0.8648 GB, free: 19.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002208/0.7665, allocations: 414.7 kB / 0.8652 GB, free: 18.86 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008451/0.7749, allocations: 2.87 MB / 0.868 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.7752, allocations: 50.61 kB / 0.868 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02967/0.8048, allocations: 17.12 MB / 0.8848 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.8049, allocations: 96 / 0.8848 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01699/0.8219, allocations: 6.178 MB / 0.8908 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.8234, allocations: 0.7 MB / 0.8915 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004574/0.8239, allocations: 44 kB / 0.8915 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002971/0.8269, allocations: 315.6 kB / 0.8918 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001114/0.828, allocations: 350.7 kB / 0.8922 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/0.8282, allocations: 67.98 kB / 0.8922 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002002/0.8302, allocations: 1.528 MB / 0.8937 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8302, allocations: 0 / 0.8937 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00236/0.8326, allocations: 1.051 MB / 0.8947 GB, free: 4.336 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: 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.01705/0.8496, allocations: 6.802 MB / 0.9014 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02135/0.871, allocations: 6.455 MB / 0.9077 GB, free: 6.945 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.8711, allocations: 0 / 0.9077 GB, free: 6.945 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01574/0.8868, allocations: 4.042 MB / 0.9116 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004246/0.8911, allocations: 1.048 MB / 0.9127 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07267/0.9638, allocations: 38.1 MB / 0.9499 GB, free: 9.699 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00176/0.9655, allocations: 2.231 MB / 0.952 GB, free: 7.438 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002313/0.9679, allocations: 0.5138 MB / 0.9525 GB, free: 6.918 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/0.9695, allocations: 1.327 MB / 0.9538 GB, free: 5.59 MB / 0.6387 GB Notification: Performance of SimCode: time 7.92e-07/0.9695, allocations: 0 / 0.9538 GB, free: 5.59 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.136/1.106, allocations: 99.46 MB / 1.051 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/1.106, allocations: 266 kB / 1.051 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.085/5.191, allocations: 0 / 1.051 GB, free: 2.98 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)