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.001077/0.001077, allocations: 108 kB / 15.61 MB, free: 152 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.001071/0.001071, allocations: 193.3 kB / 16.53 MB, free: 6.699 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002081/0.002081, allocations: 287.1 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9397/0.9397, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 97.27 kB / 0.5953 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1711, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005715/0.1769, allocations: 3.818 MB / 0.684 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002757/0.1797, allocations: 1.731 MB / 0.6857 GB, free: 11.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002599/0.18, allocations: 8.781 kB / 0.6857 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.1813, allocations: 0.4919 MB / 0.6862 GB, free: 10.53 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005784/0.1819, allocations: 220.9 kB / 0.6864 GB, free: 10.31 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005341/0.1825, allocations: 209.6 kB / 0.6866 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005997/0.1831, allocations: 478.4 kB / 0.6871 GB, free: 9.641 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005791/0.1837, allocations: 365.1 kB / 0.6874 GB, free: 9.285 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.184, allocations: 187.3 kB / 0.6876 GB, free: 9.102 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004106/0.1844, allocations: 215.2 kB / 0.6878 GB, free: 8.891 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.806e-05/0.1845, allocations: 28 kB / 0.6878 GB, free: 8.863 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004429/0.1849, allocations: 247.4 kB / 0.6881 GB, free: 8.621 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.1851, allocations: 127.7 kB / 0.6882 GB, free: 8.496 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.1853, allocations: 171.2 kB / 0.6883 GB, free: 8.328 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006206/0.1859, allocations: 0.4984 MB / 0.6888 GB, free: 7.828 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.1859, allocations: 0 / 0.6888 GB, free: 7.828 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1859, allocations: 0 / 0.6888 GB, free: 7.828 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.1859, allocations: 0 / 0.6888 GB, free: 7.828 MB / 494.1 MB 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.001202/0.1871, allocations: 0.6277 MB / 0.6894 GB, free: 7.152 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1872, allocations: 16.03 kB / 0.6895 GB, free: 7.137 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.211e-05/0.1873, allocations: 70.72 kB / 0.6895 GB, free: 7.059 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008821/0.1882, allocations: 128.4 kB / 0.6896 GB, free: 6.934 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.1885, allocations: 283.6 kB / 0.6899 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.1886, allocations: 21.03 kB / 0.6899 GB, free: 6.598 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.1886, allocations: 36.3 kB / 0.69 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000613/0.1892, allocations: 463.7 kB / 0.6904 GB, free: 6.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.1892, allocations: 4 kB / 0.6904 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.1893, allocations: 15.98 kB / 0.6904 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.397e-05/0.1893, allocations: 28.55 kB / 0.6905 GB, free: 6.023 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004554/0.1898, allocations: 321.9 kB / 0.6908 GB, free: 5.711 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.1918, allocations: 2.193 MB / 0.6929 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.1922, allocations: 243.8 kB / 0.6931 GB, free: 3.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.1924, allocations: 115.5 kB / 0.6933 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.1924, allocations: 0 / 0.6933 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.1925, allocations: 38.59 kB / 0.6933 GB, free: 2.879 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.1925, allocations: 3.938 kB / 0.6933 GB, free: 2.875 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006049/0.1931, allocations: 299.5 kB / 0.6936 GB, free: 2.555 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.1931, allocations: 59.41 kB / 0.6936 GB, free: 2.484 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.1934, allocations: 270.5 kB / 0.6939 GB, free: 2.219 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.1934, allocations: 25.7 kB / 0.6939 GB, free: 2.188 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.1935, allocations: 211.8 kB / 0.6941 GB, free: 1.977 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.682e-05/0.1936, allocations: 51.2 kB / 0.6942 GB, free: 1.926 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-05/0.1937, allocations: 49.94 kB / 0.6942 GB, free: 1.867 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1938, allocations: 334.8 kB / 0.6945 GB, free: 1.531 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.67e-05/0.1939, allocations: 56.44 kB / 0.6946 GB, free: 1.477 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.194, allocations: 147.6 kB / 0.6947 GB, free: 1.297 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.1943, allocations: 220.5 kB / 0.6949 GB, free: 1.043 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1943, allocations: 3.938 kB / 0.6949 GB, free: 1.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004273/0.1948, allocations: 264.1 kB / 0.6952 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1948, allocations: 8 kB / 0.6952 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1948, allocations: 7.938 kB / 0.6952 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.195, allocations: 24.84 kB / 0.6952 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.1952, allocations: 51.91 kB / 0.6953 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.1964, allocations: 1.418 MB / 0.6967 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.1966, allocations: 27.84 kB / 0.6967 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1966, allocations: 20.06 kB / 0.6967 GB, free: 15.07 MB / 0.4981 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.0001727/0.1968, allocations: 167.1 kB / 0.6969 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.843e-05/0.1968, allocations: 23.72 kB / 0.6969 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.978e-05/0.1969, allocations: 29.83 kB / 0.6969 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1969, allocations: 0 / 0.6969 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.1969, allocations: 3.984 kB / 0.6969 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1969, allocations: 4 kB / 0.6969 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009022/0.1978, allocations: 0.6986 MB / 0.6976 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1978, allocations: 4 kB / 0.6976 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.794e-05/0.1979, allocations: 32.11 kB / 0.6976 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.739e-05/0.198, allocations: 24.78 kB / 0.6977 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.1981, allocations: 8 kB / 0.6977 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.1992, allocations: 1.411 MB / 0.6991 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.1992, allocations: 4.031 kB / 0.6991 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003634/0.1996, allocations: 317.2 kB / 0.6994 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.1997, allocations: 116.7 kB / 0.6995 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.1998, allocations: 4 kB / 0.6995 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.1999, allocations: 12 kB / 0.6995 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.2, allocations: 23.86 kB / 0.6995 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.2, allocations: 4 kB / 0.6995 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001937/0.2002, allocations: 190 kB / 0.6997 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.2002, allocations: 0 / 0.6997 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004292/0.2006, allocations: 75.75 kB / 0.6998 GB, free: 11.64 MB / 0.4981 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.0007621/0.2014, allocations: 0.853 MB / 0.7006 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006042/0.202, allocations: 290.2 kB / 0.7009 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.202, allocations: 0.75 kB / 0.7009 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002535/0.2023, allocations: 190.6 kB / 0.7011 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005408/0.2029, allocations: 57.5 kB / 0.7011 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/0.2059, allocations: 2.711 MB / 0.7038 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.2063, allocations: 0.7907 MB / 0.7045 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001514/0.2064, allocations: 46.25 kB / 0.7046 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.2065, allocations: 83.59 kB / 0.7047 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.2065, allocations: 0 / 0.7047 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.2374, allocations: 5.303 MB / 0.7098 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/8.753, allocations: 8.703 kB / 0.7098 GB, free: 1.188 MB / 0.4981 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)