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.001482/0.001482, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 286.7 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9553/0.9553, allocations: 169.3 MB / 0.4982 GB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 98.16 kB / 0.5953 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1606, allocations: 86.98 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02456/0.1852, allocations: 22.62 MB / 0.7024 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0252/0.2104, allocations: 17.62 MB / 0.7196 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.214, allocations: 115.4 kB / 0.7197 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.01068/0.2248, allocations: 4.174 MB / 0.7238 GB, free: 3.945 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01172/0.2365, allocations: 3.507 MB / 0.7272 GB, free: 448 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003934/0.2405, allocations: 1.325 MB / 0.7285 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.00945/0.2499, allocations: 5.766 MB / 0.7341 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007065/0.257, allocations: 3.612 MB / 0.7376 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004847/0.2619, allocations: 2.394 MB / 0.74 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004928/0.2669, allocations: 2.448 MB / 0.7424 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001665/0.2686, allocations: 372 kB / 0.7427 GB, free: 432 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003264/0.2719, allocations: 1.034 MB / 0.7437 GB, free: 15.39 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00198/0.2739, allocations: 1.196 MB / 0.7449 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.004118/0.278, allocations: 1.998 MB / 0.7469 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.008559/0.2866, allocations: 5.116 MB / 0.7519 GB, free: 7.047 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2866, allocations: 0 / 0.7519 GB, free: 7.047 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2867, allocations: 0 / 0.7519 GB, free: 7.047 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001974/0.2869, allocations: 0 / 0.7519 GB, free: 7.047 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.01417/0.3011, allocations: 4.612 MB / 0.7564 GB, free: 2.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.3011, allocations: 8.031 kB / 0.7564 GB, free: 2.312 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001082/0.3022, allocations: 374.3 kB / 0.7567 GB, free: 1.938 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01635/0.3186, allocations: 3.258 MB / 0.7599 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004946/0.3236, allocations: 2.088 MB / 0.7619 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004639/0.3241, allocations: 470 kB / 0.7624 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/0.3251, allocations: 240 kB / 0.7626 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01229/0.3374, allocations: 4.81 MB / 0.7673 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.217e-05/0.3375, allocations: 0 / 0.7673 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006086/0.3381, allocations: 108 kB / 0.7674 GB, free: 6.695 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003179/0.3385, allocations: 172.8 kB / 0.7676 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0199/0.3584, allocations: 5.194 MB / 0.7727 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3212/0.6796, allocations: 14.48 MB / 0.7868 GB, free: 79.71 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/0.6898, allocations: 3.39 MB / 0.7901 GB, free: 78.68 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004075/0.6939, allocations: 1.472 MB / 0.7915 GB, free: 78.23 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002034/0.6942, allocations: 25.69 kB / 0.7916 GB, free: 78.22 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004614/0.6988, allocations: 1.786 MB / 0.7933 GB, free: 77.61 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 4.278e-06/0.6988, allocations: 0 / 0.7933 GB, free: 77.61 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.124/0.8228, allocations: 28.23 MB / 0.8209 GB, free: 65.54 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.823, allocations: 497.9 kB / 0.8214 GB, free: 64.97 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/0.8263, allocations: 2.301 MB / 0.8236 GB, free: 63.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004272/0.8267, allocations: 73.7 kB / 0.8237 GB, free: 63.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009008/0.8276, allocations: 1.438 MB / 0.8251 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000734/0.8284, allocations: 0.826 MB / 0.8259 GB, free: 60.88 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009511/0.8293, allocations: 412.5 kB / 0.8263 GB, free: 60.47 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.261e-05/0.8294, allocations: 305.1 kB / 0.8266 GB, free: 60.17 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004776/0.8342, allocations: 1.929 MB / 0.8285 GB, free: 58.23 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004968/0.8392, allocations: 2.231 MB / 0.8306 GB, free: 55.92 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009326/0.8485, allocations: 4.158 MB / 0.8347 GB, free: 51.62 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.827e-06/0.8485, allocations: 4 kB / 0.8347 GB, free: 51.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01688/0.8654, allocations: 6.535 MB / 0.8411 GB, free: 44.99 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.29e-05/0.8655, allocations: 152.8 kB / 0.8412 GB, free: 44.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.8655, allocations: 8 kB / 0.8412 GB, free: 44.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009161/0.8747, allocations: 2.951 MB / 0.8441 GB, free: 41.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/0.8775, allocations: 487.2 kB / 0.8446 GB, free: 41.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03423/0.9117, allocations: 18.85 MB / 0.863 GB, free: 22.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004208/0.9159, allocations: 319.7 kB / 0.8633 GB, free: 22.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005179/0.9165, allocations: 95.91 kB / 0.8634 GB, free: 21.92 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.001644/0.9182, allocations: 0.7033 MB / 0.8641 GB, free: 21.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007912/0.919, allocations: 332 kB / 0.8644 GB, free: 20.88 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007867/0.9198, allocations: 384.1 kB / 0.8648 GB, free: 20.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.9198, allocations: 24 kB / 0.8648 GB, free: 20.48 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.716e-05/0.9198, allocations: 12 kB / 0.8648 GB, free: 20.46 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.025e-05/0.9199, allocations: 11.95 kB / 0.8648 GB, free: 20.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004354/0.9242, allocations: 3.619 MB / 0.8683 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.998e-05/0.9243, allocations: 4 kB / 0.8683 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/0.9266, allocations: 411.3 kB / 0.8687 GB, free: 16.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008647/0.9352, allocations: 2.895 MB / 0.8716 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002949/0.9356, allocations: 55.91 kB / 0.8716 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03442/0.97, allocations: 18.63 MB / 0.8898 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.97, allocations: 0 / 0.8898 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01797/0.988, allocations: 6.173 MB / 0.8958 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/0.9896, allocations: 0.7 MB / 0.8965 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000735/0.9904, allocations: 44 kB / 0.8966 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003294/0.9937, allocations: 315.6 kB / 0.8969 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001172/0.9949, allocations: 362 kB / 0.8972 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000232/0.9951, allocations: 71.97 kB / 0.8973 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002808/0.9979, allocations: 1.528 MB / 0.8988 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.2e-07/0.998, allocations: 4 kB / 0.8988 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002939/1.001, allocations: 1.043 MB / 0.8998 GB, free: 292 kB / 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.01779/1.019, allocations: 6.807 MB / 0.9064 GB, free: 9.438 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02561/1.044, allocations: 7.298 MB / 0.9136 GB, free: 2.062 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.044, allocations: 4 kB / 0.9136 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0175/1.062, allocations: 4.063 MB / 0.9175 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005447/1.067, allocations: 1.148 MB / 0.9187 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0769/1.144, allocations: 36.88 MB / 0.9547 GB, free: 5.949 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002679/1.147, allocations: 2.231 MB / 0.9569 GB, free: 3.688 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.003205/1.15, allocations: 0.506 MB / 0.9573 GB, free: 3.176 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001968/1.152, allocations: 1.347 MB / 0.9587 GB, free: 1.828 MB / 0.6387 GB Notification: Performance of SimCode: time 9.12e-07/1.152, allocations: 0 / 0.9587 GB, free: 1.828 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4478/1.6, allocations: 104.3 MB / 1.061 GB, free: 245.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/14.8, allocations: 10.17 kB / 1.061 GB, free: 245.1 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.6 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)