Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",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.006952/0.006952, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001422/0.001422, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002603/0.002603, allocations: 289 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.3/1.3, allocations: 178.5 MB / 0.5074 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00273/0.00273, allocations: 99.84 kB / 0.6943 GB, free: 15.21 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4501/0.4528, allocations: 89.13 MB / 0.7813 GB, free: 1.16 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004415/0.4573, allocations: 3.064 MB / 0.7843 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00228/0.4596, allocations: 1.322 MB / 0.7856 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.4597, allocations: 12.78 kB / 0.7856 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.4608, allocations: 336 kB / 0.7859 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003735/0.4612, allocations: 143.8 kB / 0.7861 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.4616, allocations: 140.6 kB / 0.7862 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.462, allocations: 308.7 kB / 0.7865 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004795/0.4625, allocations: 227.4 kB / 0.7867 GB, free: 13 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.4627, allocations: 133.2 kB / 0.7868 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003616/0.4631, allocations: 136.9 kB / 0.787 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.994e-05/0.4631, allocations: 22 kB / 0.787 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003583/0.4635, allocations: 167.5 kB / 0.7872 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.4636, allocations: 82.59 kB / 0.7872 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.4638, allocations: 110.9 kB / 0.7873 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005304/0.4643, allocations: 338 kB / 0.7877 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4643, allocations: 0 / 0.7877 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4643, allocations: 3.938 kB / 0.7877 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.33e-05/0.4644, allocations: 0 / 0.7877 GB, free: 12.41 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008944/0.4653, allocations: 0.5235 MB / 0.7882 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4653, allocations: 9.719 kB / 0.7882 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.779e-05/0.4654, allocations: 54.45 kB / 0.7882 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005881/0.466, allocations: 83.38 kB / 0.7883 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.4663, allocations: 242.6 kB / 0.7885 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.4663, allocations: 16.22 kB / 0.7886 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.929e-05/0.4664, allocations: 20.7 kB / 0.7886 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005247/0.4669, allocations: 301.4 kB / 0.7889 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4669, allocations: 1.156 kB / 0.7889 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.467, allocations: 10.25 kB / 0.7889 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-05/0.467, allocations: 18.11 kB / 0.7889 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.4674, allocations: 196.4 kB / 0.7891 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.469, allocations: 1.467 MB / 0.7905 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.4694, allocations: 176.4 kB / 0.7907 GB, free: 9.637 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.525e-05/0.4694, allocations: 32.41 kB / 0.7907 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.4694, allocations: 1.344 kB / 0.7907 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.4695, allocations: 31.94 kB / 0.7907 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.4695, allocations: 0 / 0.7907 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0005166/0.47, allocations: 229.7 kB / 0.791 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.4701, allocations: 52.84 kB / 0.791 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.4703, allocations: 191.6 kB / 0.7912 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.4703, allocations: 29.7 kB / 0.7912 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.4704, allocations: 168.9 kB / 0.7914 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.4705, allocations: 27.34 kB / 0.7914 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.493e-05/0.4706, allocations: 42.22 kB / 0.7915 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.4707, allocations: 330.2 kB / 0.7918 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.537e-05/0.4708, allocations: 34.05 kB / 0.7918 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.471, allocations: 101.3 kB / 0.7919 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002068/0.4712, allocations: 149 kB / 0.792 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.4712, allocations: 1.625 kB / 0.792 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003415/0.4715, allocations: 186.4 kB / 0.7922 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.4716, allocations: 10.39 kB / 0.7922 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.4716, allocations: 1.812 kB / 0.7922 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.4717, allocations: 35.28 kB / 0.7923 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.4719, allocations: 25.53 kB / 0.7923 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.4731, allocations: 1.43 MB / 0.7937 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.4732, allocations: 17.73 kB / 0.7937 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.4733, allocations: 5.844 kB / 0.7937 GB, free: 6.723 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001603/0.4734, allocations: 150.7 kB / 0.7939 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.308e-05/0.4735, allocations: 15.09 kB / 0.7939 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.4735, allocations: 28.92 kB / 0.7939 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4735, allocations: 1.469 kB / 0.7939 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.4735, allocations: 0 / 0.7939 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4735, allocations: 1.375 kB / 0.7939 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005922/0.4741, allocations: 448.9 kB / 0.7943 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4742, allocations: 0 / 0.7943 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.535e-05/0.4742, allocations: 7.062 kB / 0.7943 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.99e-05/0.4743, allocations: 26.56 kB / 0.7944 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.4743, allocations: 1.312 kB / 0.7944 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.4755, allocations: 1.415 MB / 0.7957 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4755, allocations: 1.406 kB / 0.7957 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.4758, allocations: 207.9 kB / 0.7959 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.989e-05/0.4759, allocations: 100.1 kB / 0.796 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.4759, allocations: 4 kB / 0.796 GB, free: 4.367 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.476, allocations: 8.188 kB / 0.796 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.17e-05/0.476, allocations: 5.375 kB / 0.7961 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.4761, allocations: 6.453 kB / 0.7961 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001483/0.4762, allocations: 146.8 kB / 0.7962 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4762, allocations: 0 / 0.7962 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003596/0.4766, allocations: 52.3 kB / 0.7963 GB, free: 4.234 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005836/0.4772, allocations: 0.755 MB / 0.797 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004117/0.4776, allocations: 206.2 kB / 0.7972 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4776, allocations: 0 / 0.7972 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.4778, allocations: 154 kB / 0.7973 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.4782, allocations: 42.19 kB / 0.7974 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.4808, allocations: 2.042 MB / 0.7994 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.4813, allocations: 0.7518 MB / 0.8001 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001323/0.4815, allocations: 32.56 kB / 0.8001 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.355e-05/0.4816, allocations: 50.67 kB / 0.8002 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of SimCode: time 7.21e-07/0.4816, allocations: 0 / 0.8002 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03117/0.5127, allocations: 3.746 MB / 0.8038 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.421/9.934, allocations: 1.375 kB / 0.8038 GB, free: 14.74 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)