Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",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.00454/0.00454, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001266/0.001266, allocations: 193 kB / 16.68 MB, free: 6.363 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 274.7 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002853/0.002853, allocations: 91.86 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1699, allocations: 86.97 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005876/0.1758, allocations: 3.825 MB / 0.7696 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002941/0.1788, allocations: 1.729 MB / 0.7713 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/0.179, allocations: 11.94 kB / 0.7713 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.1805, allocations: 496.5 kB / 0.7718 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005725/0.1811, allocations: 226.9 kB / 0.772 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005871/0.1817, allocations: 215.5 kB / 0.7722 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006437/0.1824, allocations: 474.1 kB / 0.7727 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006153/0.183, allocations: 365.1 kB / 0.773 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003226/0.1833, allocations: 195.3 kB / 0.7732 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004859/0.1838, allocations: 215.2 kB / 0.7734 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.1839, allocations: 28 kB / 0.7734 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004923/0.1844, allocations: 243.5 kB / 0.7737 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.1846, allocations: 131.7 kB / 0.7738 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.1848, allocations: 171.1 kB / 0.774 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008108/0.1856, allocations: 0.502 MB / 0.7745 GB, free: 156 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1856, allocations: 0 / 0.7745 GB, free: 156 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1856, allocations: 0 / 0.7745 GB, free: 156 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.268e-05/0.1856, allocations: 0 / 0.7745 GB, free: 156 kB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.3133/0.4989, allocations: 0.6347 MB / 0.7751 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.499, allocations: 9.594 kB / 0.7751 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.51e-05/0.4991, allocations: 69.75 kB / 0.7752 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.5001, allocations: 138.9 kB / 0.7753 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.5005, allocations: 297 kB / 0.7756 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.5006, allocations: 19.5 kB / 0.7756 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.5006, allocations: 26.78 kB / 0.7756 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007305/0.5014, allocations: 465.6 kB / 0.7761 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.5014, allocations: 5.25 kB / 0.7761 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.428e-05/0.5014, allocations: 14.12 kB / 0.7761 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-05/0.5015, allocations: 30.66 kB / 0.7761 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005105/0.502, allocations: 321 kB / 0.7764 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.5039, allocations: 2.181 MB / 0.7785 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003869/0.5043, allocations: 258.6 kB / 0.7788 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.5046, allocations: 105.4 kB / 0.7789 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.5046, allocations: 1.375 kB / 0.7789 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.5046, allocations: 37.03 kB / 0.7789 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.974e-06/0.5047, allocations: 0 / 0.7789 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0006199/0.5053, allocations: 300.7 kB / 0.7792 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.41e-05/0.5053, allocations: 57.22 kB / 0.7793 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.5056, allocations: 269 kB / 0.7795 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.5056, allocations: 30.61 kB / 0.7795 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.5057, allocations: 208.6 kB / 0.7797 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.5058, allocations: 53.45 kB / 0.7798 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.008e-05/0.5058, allocations: 46.47 kB / 0.7798 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.288e-05/0.5059, allocations: 343 kB / 0.7802 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.506, allocations: 54.94 kB / 0.7802 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.5062, allocations: 149.6 kB / 0.7804 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.5064, allocations: 217.9 kB / 0.7806 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5064, allocations: 1 kB / 0.7806 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003935/0.5068, allocations: 267.4 kB / 0.7808 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.5068, allocations: 6.062 kB / 0.7808 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.5068, allocations: 5.688 kB / 0.7808 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001619/0.507, allocations: 28.12 kB / 0.7809 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.5072, allocations: 47.47 kB / 0.7809 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008199/0.508, allocations: 1.427 MB / 0.7823 GB, free: 9.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.5082, allocations: 23.59 kB / 0.7823 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.5082, allocations: 13.34 kB / 0.7823 GB, free: 9.863 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001333/0.5084, allocations: 167.3 kB / 0.7825 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.868e-05/0.5084, allocations: 27.48 kB / 0.7825 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.5085, allocations: 27.58 kB / 0.7826 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.5085, allocations: 2.312 kB / 0.7826 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5085, allocations: 1.594 kB / 0.7826 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.5085, allocations: 0.5625 kB / 0.7826 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008179/0.5093, allocations: 0.7135 MB / 0.7833 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.5093, allocations: 5.891 kB / 0.7833 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.774e-05/0.5094, allocations: 22.06 kB / 0.7833 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.716e-05/0.5095, allocations: 32.61 kB / 0.7833 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.5095, allocations: 6.656 kB / 0.7833 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006434/0.5102, allocations: 1.414 MB / 0.7847 GB, free: 7.699 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.5102, allocations: 5.969 kB / 0.7847 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.5105, allocations: 313.4 kB / 0.785 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.015e-05/0.5106, allocations: 115.7 kB / 0.7851 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.5106, allocations: 10.56 kB / 0.7851 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.5107, allocations: 6.5 kB / 0.7851 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.5108, allocations: 22.45 kB / 0.7852 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.5108, allocations: 4.906 kB / 0.7852 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001531/0.511, allocations: 190.8 kB / 0.7853 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.511, allocations: 0 / 0.7853 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003883/0.5114, allocations: 80.22 kB / 0.7854 GB, free: 7.188 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0004205/0.5118, allocations: 0.8524 MB / 0.7862 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000404/0.5122, allocations: 278.6 kB / 0.7865 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5122, allocations: 0.9062 kB / 0.7865 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.5124, allocations: 183.1 kB / 0.7867 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.5128, allocations: 60.38 kB / 0.7867 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.5153, allocations: 2.716 MB / 0.7894 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.5156, allocations: 0.7953 MB / 0.7902 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001336/0.5157, allocations: 42.23 kB / 0.7902 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.773e-05/0.5158, allocations: 82.66 kB / 0.7903 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.5158, allocations: 1.344 kB / 0.7903 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03063/0.5464, allocations: 5.416 MB / 0.7956 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.524/10.07, allocations: 8.031 kB / 0.7956 GB, free: 2.715 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor_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_Loads_Examples_Resistor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)