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.004607/0.004607, allocations: 99.05 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.001097/0.001097, allocations: 202 kB / 16.68 MB, free: 5.977 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002244/0.002244, allocations: 271.1 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.934/0.934, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001829, allocations: 103.8 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1712, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006646/0.1779, allocations: 4.345 MB / 0.7701 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003256/0.1812, allocations: 1.874 MB / 0.772 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000357/0.1816, allocations: 8 kB / 0.772 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001785/0.1834, allocations: 0.5836 MB / 0.7725 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0007069/0.1841, allocations: 274.6 kB / 0.7728 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006609/0.1848, allocations: 245.9 kB / 0.773 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007461/0.1856, allocations: 0.6226 MB / 0.7736 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007133/0.1863, allocations: 470.8 kB / 0.7741 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000386/0.1867, allocations: 247.1 kB / 0.7743 GB, free: 288 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000499/0.1872, allocations: 267 kB / 0.7746 GB, free: 20 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.3096/0.4968, allocations: 36.77 kB / 0.7746 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008063/0.4976, allocations: 255.7 kB / 0.7749 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.4978, allocations: 152.7 kB / 0.775 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002896/0.4981, allocations: 217.2 kB / 0.7752 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008318/0.499, allocations: 0.608 MB / 0.7758 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.499, allocations: 0 / 0.7758 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.232e-06/0.499, allocations: 0 / 0.7758 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.499, allocations: 0.875 kB / 0.7758 GB, free: 8.812 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.001162/0.5002, allocations: 0.7412 MB / 0.7765 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.5002, allocations: 9.578 kB / 0.7765 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.221e-05/0.5003, allocations: 76.94 kB / 0.7766 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009841/0.5013, allocations: 147.9 kB / 0.7767 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004522/0.5017, allocations: 343.1 kB / 0.7771 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.5018, allocations: 27.84 kB / 0.7771 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.949e-05/0.5018, allocations: 32.08 kB / 0.7771 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008474/0.5027, allocations: 0.5358 MB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.5027, allocations: 4.531 kB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.5028, allocations: 13.88 kB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.916e-05/0.5028, allocations: 32.72 kB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005951/0.5034, allocations: 385.3 kB / 0.7781 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.5056, allocations: 2.412 MB / 0.7804 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000502/0.5061, allocations: 261.8 kB / 0.7807 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.5063, allocations: 109.5 kB / 0.7808 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.5063, allocations: 2.312 kB / 0.7808 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.5063, allocations: 36.19 kB / 0.7808 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.5063, allocations: 3.938 kB / 0.7808 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.001958/0.5083, allocations: 1.133 MB / 0.7819 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.092e-05/0.5083, allocations: 54.66 kB / 0.782 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.5086, allocations: 301.8 kB / 0.7823 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.5086, allocations: 31.89 kB / 0.7823 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.409e-05/0.5087, allocations: 236.9 kB / 0.7825 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.763e-05/0.5088, allocations: 85.08 kB / 0.7826 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.183e-05/0.5089, allocations: 66.92 kB / 0.7827 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.282e-05/0.5089, allocations: 341 kB / 0.783 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.5091, allocations: 99.75 kB / 0.7831 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.5093, allocations: 199.4 kB / 0.7833 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.5096, allocations: 313.6 kB / 0.7836 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5096, allocations: 1.312 kB / 0.7836 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008672/0.5105, allocations: 441.5 kB / 0.784 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.5105, allocations: 9.734 kB / 0.784 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.5106, allocations: 2.438 kB / 0.784 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003348/0.5109, allocations: 102.9 kB / 0.7841 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.5112, allocations: 59.88 kB / 0.7842 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002841/0.514, allocations: 4.391 MB / 0.7885 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.5143, allocations: 17.27 kB / 0.7885 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.5143, allocations: 10.69 kB / 0.7885 GB, free: 16.15 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.0001885/0.5145, allocations: 186 kB / 0.7887 GB, free: 16 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.177e-05/0.5146, allocations: 35 kB / 0.7887 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.661e-05/0.5146, allocations: 45.11 kB / 0.7887 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.5146, allocations: 2.844 kB / 0.7887 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/0.5147, allocations: 1.5 kB / 0.7887 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.5147, allocations: 3.938 kB / 0.7887 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/0.5151, allocations: 399.1 kB / 0.7891 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5151, allocations: 0 / 0.7891 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.5153, allocations: 42.7 kB / 0.7892 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002757/0.5156, allocations: 89.39 kB / 0.7893 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.5156, allocations: 6.094 kB / 0.7893 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002762/0.5184, allocations: 4.389 MB / 0.7935 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5184, allocations: 0 / 0.7935 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007359/0.5191, allocations: 0.564 MB / 0.7941 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.5193, allocations: 129 kB / 0.7942 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.5193, allocations: 3.641 kB / 0.7942 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.5195, allocations: 16.05 kB / 0.7942 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.5196, allocations: 18.77 kB / 0.7943 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.5196, allocations: 6.438 kB / 0.7943 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001924/0.5198, allocations: 213.7 kB / 0.7945 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5198, allocations: 0 / 0.7945 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004377/0.5202, allocations: 99.31 kB / 0.7946 GB, free: 10.77 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.0009845/0.5212, allocations: 1.108 MB / 0.7956 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007688/0.522, allocations: 0.5964 MB / 0.7962 GB, free: 9.512 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.522, allocations: 3.781 kB / 0.7962 GB, free: 9.512 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.5225, allocations: 478.3 kB / 0.7967 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.523, allocations: 77.8 kB / 0.7968 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003741/0.5267, allocations: 3.372 MB / 0.8 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.5272, allocations: 0.8399 MB / 0.8009 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001882/0.5274, allocations: 61.03 kB / 0.8009 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.5275, allocations: 108.6 kB / 0.801 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.5275, allocations: 0 / 0.801 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05405/0.5816, allocations: 7.798 MB / 0.8086 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.207/9.788, allocations: 13.78 kB / 0.8087 GB, free: 5.34 MB / 0.5762 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)