Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.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.VariableLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_VariableLoad",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.000954/0.0009539, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007438/0.007439, allocations: 173.1 kB / 16.26 MB, free: 6.613 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.371/1.371, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001686/0.001686, allocations: 266.8 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9187/0.9187, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000733/0.000733, allocations: 12.25 kB / 0.5988 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1709, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.004135/0.175, allocations: 3.502 MB / 0.6887 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00249/0.1775, allocations: 1.734 MB / 0.6903 GB, free: 9.707 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.1777, allocations: 7.938 kB / 0.6904 GB, free: 9.699 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.1779, allocations: 59.5 kB / 0.6904 GB, free: 9.641 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005077/0.1785, allocations: 235.3 kB / 0.6906 GB, free: 9.414 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005522/0.179, allocations: 243.6 kB / 0.6909 GB, free: 9.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006301/0.1797, allocations: 0.694 MB / 0.6915 GB, free: 8.484 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004064/0.1801, allocations: 358.8 kB / 0.6919 GB, free: 8.117 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.1803, allocations: 164 kB / 0.692 GB, free: 7.957 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003233/0.1806, allocations: 228.9 kB / 0.6923 GB, free: 7.734 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.398e-05/0.1806, allocations: 16 kB / 0.6923 GB, free: 7.719 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003355/0.181, allocations: 223.5 kB / 0.6925 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.1811, allocations: 115.7 kB / 0.6926 GB, free: 7.387 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.1813, allocations: 181.7 kB / 0.6928 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004809/0.1818, allocations: 486.3 kB / 0.6932 GB, free: 6.727 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1818, allocations: 7.938 kB / 0.6932 GB, free: 6.719 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1818, allocations: 0.625 kB / 0.6932 GB, free: 6.719 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1818, allocations: 0.5312 kB / 0.6932 GB, free: 6.719 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0009297/0.1827, allocations: 0.6063 MB / 0.6938 GB, free: 6.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1828, allocations: 8.031 kB / 0.6938 GB, free: 6.059 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.875e-05/0.1829, allocations: 70.7 kB / 0.6939 GB, free: 5.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005232/0.1834, allocations: 92.41 kB / 0.694 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003168/0.1837, allocations: 287.6 kB / 0.6943 GB, free: 5.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.1838, allocations: 21.03 kB / 0.6943 GB, free: 5.551 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.463e-05/0.1838, allocations: 32.36 kB / 0.6943 GB, free: 5.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000785/0.1846, allocations: 497.8 kB / 0.6948 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1846, allocations: 3.984 kB / 0.6948 GB, free: 4.996 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.1847, allocations: 12 kB / 0.6948 GB, free: 4.984 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.652e-05/0.1847, allocations: 36.64 kB / 0.6949 GB, free: 4.945 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007576/0.1855, allocations: 394.2 kB / 0.6952 GB, free: 4.562 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.1875, allocations: 2.052 MB / 0.6972 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.188, allocations: 230.7 kB / 0.6975 GB, free: 2.074 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003882/0.1884, allocations: 166.6 kB / 0.6976 GB, free: 1.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.1885, allocations: 4 kB / 0.6976 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.1885, allocations: 30.56 kB / 0.6976 GB, free: 1.867 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.433e-06/0.1885, allocations: 0 / 0.6976 GB, free: 1.867 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.001108/0.1896, allocations: 463 kB / 0.6981 GB, free: 1.387 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.1897, allocations: 55.34 kB / 0.6981 GB, free: 1.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.1899, allocations: 262.6 kB / 0.6984 GB, free: 1.062 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.19, allocations: 33.7 kB / 0.6984 GB, free: 1.023 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.1901, allocations: 207.7 kB / 0.6986 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.1901, allocations: 67.08 kB / 0.6987 GB, free: 0.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.1902, allocations: 33.7 kB / 0.6987 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1903, allocations: 330.8 kB / 0.699 GB, free: 388 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/0.1906, allocations: 108.4 kB / 0.6991 GB, free: 276 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003267/0.1909, allocations: 211.6 kB / 0.6993 GB, free: 12 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.1915, allocations: 339.8 kB / 0.6997 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1915, allocations: 0 / 0.6997 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007839/0.1923, allocations: 378 kB / 0.7 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001211/0.1925, allocations: 196 kB / 0.7002 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1925, allocations: 4 kB / 0.7002 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001791/0.1927, allocations: 36.83 kB / 0.7002 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.193, allocations: 71.91 kB / 0.7003 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.1941, allocations: 1.335 MB / 0.7016 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.1944, allocations: 47.66 kB / 0.7017 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.1944, allocations: 12 kB / 0.7017 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.971e-06/0.1944, allocations: 4 kB / 0.7017 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006459/0.1951, allocations: 302.1 kB / 0.702 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1951, allocations: 4 kB / 0.702 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.953e-06/0.1951, allocations: 7.938 kB / 0.702 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.1954, allocations: 84.02 kB / 0.7021 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1954, allocations: 4 kB / 0.7021 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.1956, allocations: 51.67 kB / 0.7021 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.1957, allocations: 12 kB / 0.7021 GB, free: 12.91 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001949/0.1959, allocations: 241.7 kB / 0.7024 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.838e-05/0.1959, allocations: 27.7 kB / 0.7024 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.7e-05/0.196, allocations: 38.12 kB / 0.7024 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.196, allocations: 0 / 0.7024 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.196, allocations: 3.984 kB / 0.7024 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.196, allocations: 4 kB / 0.7024 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1972, allocations: 0.7732 MB / 0.7032 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1972, allocations: 0 / 0.7032 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.1974, allocations: 47.97 kB / 0.7032 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.322e-05/0.1975, allocations: 32.72 kB / 0.7033 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.1975, allocations: 4 kB / 0.7033 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009532/0.1985, allocations: 1.312 MB / 0.7045 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1985, allocations: 7.875 kB / 0.7045 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006797/0.1992, allocations: 385.7 kB / 0.7049 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.413e-05/0.1993, allocations: 116.7 kB / 0.705 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.1993, allocations: 11.94 kB / 0.705 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.1995, allocations: 19.97 kB / 0.7051 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.985e-05/0.1996, allocations: 23.92 kB / 0.7051 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.1996, allocations: 4 kB / 0.7051 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001619/0.1998, allocations: 186 kB / 0.7053 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1998, allocations: 4 kB / 0.7053 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005418/0.2003, allocations: 139.5 kB / 0.7054 GB, free: 9.293 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 17 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008938/0.2012, allocations: 0.927 MB / 0.7063 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001036/0.2023, allocations: 0.505 MB / 0.7068 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2023, allocations: 0 / 0.7068 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.2026, allocations: 235.5 kB / 0.707 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/0.2032, allocations: 62.73 kB / 0.7071 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.2069, allocations: 3.075 MB / 0.7101 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.2073, allocations: 0.7957 MB / 0.7109 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002265/0.2075, allocations: 78.19 kB / 0.7109 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.2076, allocations: 91.41 kB / 0.711 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/0.2076, allocations: 3.938 kB / 0.711 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01627/0.2239, allocations: 5.737 MB / 0.7166 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.2241, allocations: 249.9 kB / 0.7169 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/1.959, allocations: 4 kB / 0.7169 GB, free: 13.48 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_VariableLoad.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)