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.001484/0.001484, allocations: 108 kB / 15.6 MB, free: 132 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.001234/0.001234, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00247/0.00247, allocations: 287 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9802/0.9802, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00263/0.002631, allocations: 100.5 kB / 0.5954 GB, free: 27.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.145, allocations: 86.97 MB / 0.6803 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02644/0.1715, allocations: 22.62 MB / 0.7024 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02537/0.1969, allocations: 17.62 MB / 0.7196 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002981/0.1999, allocations: 115.4 kB / 0.7197 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.01042/0.2104, allocations: 4.183 MB / 0.7238 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009881/0.2203, allocations: 3.513 MB / 0.7272 GB, free: 392 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003562/0.2239, allocations: 1.306 MB / 0.7285 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008499/0.2324, allocations: 5.776 MB / 0.7341 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006038/0.2385, allocations: 3.608 MB / 0.7376 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003931/0.2424, allocations: 2.402 MB / 0.74 GB, free: 3.191 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004447/0.2469, allocations: 2.448 MB / 0.7424 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0008253/0.2477, allocations: 368 kB / 0.7427 GB, free: 384 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002376/0.2501, allocations: 1.034 MB / 0.7437 GB, free: 15.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.2513, allocations: 1.196 MB / 0.7449 GB, free: 14.14 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002402/0.2537, allocations: 1.994 MB / 0.7469 GB, free: 12.14 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005595/0.2593, allocations: 5.12 MB / 0.7519 GB, free: 7 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2593, allocations: 4 kB / 0.7519 GB, free: 6.996 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2594, allocations: 0 / 0.7519 GB, free: 6.996 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.066e-05/0.2594, allocations: 0 / 0.7519 GB, free: 6.996 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.01/0.2694, allocations: 4.609 MB / 0.7564 GB, free: 2.273 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.2695, allocations: 12.03 kB / 0.7564 GB, free: 2.262 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004923/0.27, allocations: 358.3 kB / 0.7567 GB, free: 1.902 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01599/0.286, allocations: 3.265 MB / 0.7599 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004179/0.2902, allocations: 2.088 MB / 0.7619 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004181/0.2907, allocations: 474 kB / 0.7624 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005261/0.2912, allocations: 236 kB / 0.7626 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/0.3022, allocations: 4.81 MB / 0.7673 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.081e-05/0.3023, allocations: 4 kB / 0.7673 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003315/0.3026, allocations: 99.98 kB / 0.7674 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002096/0.3028, allocations: 168.8 kB / 0.7676 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01389/0.3167, allocations: 5.206 MB / 0.7727 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2442/0.5609, allocations: 14.48 MB / 0.7868 GB, free: 78.91 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009142/0.5701, allocations: 3.389 MB / 0.7901 GB, free: 77.88 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003539/0.5736, allocations: 1.472 MB / 0.7916 GB, free: 77.43 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001146/0.5738, allocations: 23.58 kB / 0.7916 GB, free: 77.43 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003929/0.5777, allocations: 1.792 MB / 0.7933 GB, free: 76.81 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.566e-06/0.5777, allocations: 0 / 0.7933 GB, free: 76.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1176/0.6954, allocations: 28.22 MB / 0.8209 GB, free: 64.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.6955, allocations: 0.4942 MB / 0.8214 GB, free: 64.08 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002186/0.6977, allocations: 2.296 MB / 0.8236 GB, free: 62.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002253/0.6979, allocations: 81.69 kB / 0.8237 GB, free: 62.09 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007204/0.6987, allocations: 1.43 MB / 0.8251 GB, free: 60.65 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004671/0.6991, allocations: 0.8226 MB / 0.8259 GB, free: 59.84 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006996/0.6998, allocations: 412.5 kB / 0.8263 GB, free: 59.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.24e-05/0.6999, allocations: 305.1 kB / 0.8266 GB, free: 59.12 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00449/0.7044, allocations: 1.933 MB / 0.8285 GB, free: 57.19 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004568/0.709, allocations: 2.229 MB / 0.8306 GB, free: 54.88 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008893/0.7179, allocations: 4.165 MB / 0.8347 GB, free: 50.57 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.7179, allocations: 4 kB / 0.8347 GB, free: 50.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01611/0.734, allocations: 6.531 MB / 0.8411 GB, free: 43.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/0.7341, allocations: 148.5 kB / 0.8412 GB, free: 43.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.7341, allocations: 4 kB / 0.8412 GB, free: 43.77 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008751/0.7429, allocations: 2.959 MB / 0.8441 GB, free: 40.81 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002659/0.7456, allocations: 487.2 kB / 0.8446 GB, free: 40.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03222/0.7778, allocations: 18.85 MB / 0.863 GB, free: 21.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003793/0.7816, allocations: 315.7 kB / 0.8633 GB, free: 20.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002612/0.7819, allocations: 95.91 kB / 0.8634 GB, free: 20.88 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.001196/0.7831, allocations: 0.704 MB / 0.8641 GB, free: 20.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000509/0.7836, allocations: 328.1 kB / 0.8644 GB, free: 19.84 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005931/0.7842, allocations: 384.1 kB / 0.8648 GB, free: 19.46 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.7842, allocations: 28 kB / 0.8648 GB, free: 19.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.906e-05/0.7843, allocations: 19.17 kB / 0.8648 GB, free: 19.41 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.7843, allocations: 11.95 kB / 0.8648 GB, free: 19.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003375/0.7877, allocations: 3.619 MB / 0.8683 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.7877, allocations: 2.062 kB / 0.8683 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002241/0.7899, allocations: 419.3 kB / 0.8687 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0083/0.7983, allocations: 2.882 MB / 0.8716 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/0.7985, allocations: 55.91 kB / 0.8716 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03436/0.8329, allocations: 18.63 MB / 0.8898 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.8329, allocations: 4.625 kB / 0.8898 GB, free: 9.516 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01827/0.8512, allocations: 6.177 MB / 0.8958 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001601/0.8528, allocations: 0.6961 MB / 0.8965 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004872/0.8533, allocations: 49.12 kB / 0.8966 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003114/0.8565, allocations: 319.5 kB / 0.8969 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00114/0.8576, allocations: 354.7 kB / 0.8972 GB, free: 1.883 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002008/0.8578, allocations: 71.97 kB / 0.8973 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002202/0.86, allocations: 1.532 MB / 0.8988 GB, free: 288 kB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/0.86, allocations: 0 / 0.8988 GB, free: 288 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002569/0.8626, allocations: 1.043 MB / 0.8998 GB, free: 15.23 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.01877/0.8814, allocations: 6.805 MB / 0.9064 GB, free: 8.391 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02614/0.9076, allocations: 7.297 MB / 0.9136 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.9076, allocations: 4 kB / 0.9136 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01751/0.9251, allocations: 4.063 MB / 0.9175 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004689/0.9298, allocations: 1.145 MB / 0.9187 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07676/1.007, allocations: 36.89 MB / 0.9547 GB, free: 4.902 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002062/1.009, allocations: 2.227 MB / 0.9569 GB, free: 2.645 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002308/1.011, allocations: 0.5099 MB / 0.9574 GB, free: 2.129 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001819/1.013, allocations: 1.343 MB / 0.9587 GB, free: 0.7852 MB / 0.6387 GB Notification: Performance of SimCode: time 9.12e-07/1.013, allocations: 0 / 0.9587 GB, free: 0.7852 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4167/1.43, allocations: 104.3 MB / 1.061 GB, free: 242.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/15.14, allocations: 6.016 kB / 1.061 GB, free: 242.4 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)