Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",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.001934/0.001934, allocations: 112.5 kB / 15.73 MB, free: 76 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.002076/0.002076, allocations: 194.5 kB / 16.67 MB, free: 6.582 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002579/0.00258, allocations: 294 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00271/0.00271, allocations: 100.5 kB / 0.6943 GB, free: 3.641 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.489/0.4917, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006618/0.4984, allocations: 4.358 MB / 0.7856 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003483/0.5019, allocations: 1.85 MB / 0.7874 GB, free: 9.613 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003258/0.5022, allocations: 12.19 kB / 0.7874 GB, free: 9.609 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001806/0.5041, allocations: 0.5975 MB / 0.788 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0007346/0.5048, allocations: 260.8 kB / 0.7882 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007852/0.5056, allocations: 250.6 kB / 0.7885 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007758/0.5064, allocations: 0.6154 MB / 0.7891 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007814/0.5072, allocations: 465.2 kB / 0.7895 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004257/0.5076, allocations: 247.2 kB / 0.7897 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006006/0.5082, allocations: 269.7 kB / 0.79 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.052e-05/0.5083, allocations: 36.69 kB / 0.79 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005284/0.5089, allocations: 262.5 kB / 0.7903 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.5091, allocations: 149 kB / 0.7904 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002612/0.5093, allocations: 216.1 kB / 0.7906 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009126/0.5103, allocations: 0.6117 MB / 0.7912 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5103, allocations: 0.75 kB / 0.7912 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5103, allocations: 1 kB / 0.7912 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.939e-06/0.5103, allocations: 0 / 0.7912 GB, free: 7.797 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001393/0.5117, allocations: 0.7441 MB / 0.7919 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.5117, allocations: 10.19 kB / 0.792 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.394e-05/0.5118, allocations: 72.83 kB / 0.792 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009985/0.5128, allocations: 152.2 kB / 0.7922 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.5134, allocations: 339.2 kB / 0.7925 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.5134, allocations: 25.98 kB / 0.7925 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.979e-05/0.5135, allocations: 34.19 kB / 0.7926 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009126/0.5144, allocations: 0.5311 MB / 0.7931 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.5144, allocations: 5.281 kB / 0.7931 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.701e-05/0.5145, allocations: 16.09 kB / 0.7931 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.609e-05/0.5146, allocations: 37.58 kB / 0.7931 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006566/0.5152, allocations: 391.1 kB / 0.7935 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.5182, allocations: 2.401 MB / 0.7958 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005805/0.5188, allocations: 256.8 kB / 0.7961 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.519, allocations: 107.8 kB / 0.7962 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.5191, allocations: 7.094 kB / 0.7962 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/0.5191, allocations: 40.64 kB / 0.7962 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=20): time 2.856e-06/0.5191, allocations: 0 / 0.7962 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.002578/0.5217, allocations: 1.129 MB / 0.7973 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.5218, allocations: 58.19 kB / 0.7974 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/0.5222, allocations: 302.6 kB / 0.7977 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.5222, allocations: 27.95 kB / 0.7977 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.5224, allocations: 241.2 kB / 0.7979 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.76e-05/0.5225, allocations: 82.61 kB / 0.798 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.5226, allocations: 65.33 kB / 0.7981 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.5228, allocations: 338.5 kB / 0.7984 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.523, allocations: 104.7 kB / 0.7985 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.5232, allocations: 184.1 kB / 0.7987 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004784/0.5237, allocations: 319.6 kB / 0.799 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.5238, allocations: 1.219 kB / 0.799 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008363/0.5246, allocations: 455.7 kB / 0.7994 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.5246, allocations: 6.344 kB / 0.7994 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.5246, allocations: 2.031 kB / 0.7994 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004056/0.5251, allocations: 95.25 kB / 0.7995 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003056/0.5254, allocations: 68.3 kB / 0.7996 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004009/0.5294, allocations: 4.394 MB / 0.8039 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.5297, allocations: 7.938 kB / 0.8039 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.5298, allocations: 10.59 kB / 0.8039 GB, free: 13.17 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002896/0.5301, allocations: 187.3 kB / 0.8041 GB, free: 13 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.425e-05/0.5302, allocations: 43.28 kB / 0.8041 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.725e-05/0.5303, allocations: 37.59 kB / 0.8042 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.5303, allocations: 2.75 kB / 0.8042 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.5303, allocations: 1.375 kB / 0.8042 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.5303, allocations: 0 / 0.8042 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005584/0.5309, allocations: 396.9 kB / 0.8045 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.5309, allocations: 5.188 kB / 0.8045 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001904/0.5311, allocations: 34.33 kB / 0.8046 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003383/0.5314, allocations: 95.67 kB / 0.8047 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.5315, allocations: 5.906 kB / 0.8047 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003829/0.5353, allocations: 4.393 MB / 0.809 GB, free: 8.055 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.5353, allocations: 3.938 kB / 0.809 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.5364, allocations: 0.5584 MB / 0.8095 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.5366, allocations: 129.4 kB / 0.8096 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.929e-05/0.5366, allocations: 1.406 kB / 0.8096 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.5368, allocations: 10.97 kB / 0.8096 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.322e-05/0.5369, allocations: 24.28 kB / 0.8097 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.5369, allocations: 4.469 kB / 0.8097 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000274/0.5372, allocations: 217.9 kB / 0.8099 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5372, allocations: 3.938 kB / 0.8099 GB, free: 7.379 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006312/0.5379, allocations: 94.34 kB / 0.81 GB, free: 7.371 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001267/0.5391, allocations: 1.098 MB / 0.811 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001002/0.5402, allocations: 0.6062 MB / 0.8116 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5402, allocations: 0 / 0.8116 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006131/0.5408, allocations: 478.5 kB / 0.8121 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.5413, allocations: 71.7 kB / 0.8122 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00535/0.5467, allocations: 3.387 MB / 0.8155 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.5473, allocations: 0.8387 MB / 0.8163 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002597/0.5476, allocations: 54.56 kB / 0.8163 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.5477, allocations: 114.5 kB / 0.8165 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/0.5478, allocations: 0 / 0.8165 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0562/0.604, allocations: 7.812 MB / 0.8241 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.875/10.48, allocations: 5.297 kB / 0.8241 GB, free: 14.3 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)