Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.276/1.276, allocations: 251.5 MB / 266.7 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008906/0.0008905, allocations: 174.8 kB / 325.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205 MB / 0.576 GB, free: 21.01 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000683/0.0006828, allocations: 92.27 kB / 0.6797 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.000274, allocations: 18 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.162, allocations: 105.4 MB / 0.8962 GB, free: 68.13 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.00312/0.1651, allocations: 3.541 MB / 0.8997 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001649/0.1668, allocations: 1.738 MB / 0.9014 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1669, allocations: 11.94 kB / 0.9014 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0009042/0.1678, allocations: 466.5 kB / 0.9018 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.1681, allocations: 207 kB / 0.902 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.1684, allocations: 187.6 kB / 0.9022 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003641/0.1688, allocations: 0.6623 MB / 0.9028 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.1691, allocations: 229.2 kB / 0.9031 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1692, allocations: 163.3 kB / 0.9032 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.1694, allocations: 207.2 kB / 0.9034 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.1695, allocations: 12 kB / 0.9034 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002827/0.1698, allocations: 307.3 kB / 0.9037 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.143e-05/0.1698, allocations: 107.7 kB / 0.9038 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.371e-05/0.1699, allocations: 155.2 kB / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.1703, allocations: 0.4983 MB / 0.9045 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1703, allocations: 0 / 0.9045 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1703, allocations: 0 / 0.9045 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.1703, allocations: 0 / 0.9045 GB, free: 59.64 MB / 0.6042 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.0005848/0.1709, allocations: 0.5771 MB / 0.905 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.1709, allocations: 12.03 kB / 0.905 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.906e-05/0.171, allocations: 70.66 kB / 0.9051 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007026/0.1717, allocations: 136.3 kB / 0.9052 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.1719, allocations: 283.7 kB / 0.9055 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1719, allocations: 21.03 kB / 0.9055 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.172, allocations: 36.36 kB / 0.9056 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004355/0.1724, allocations: 463.7 kB / 0.906 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1724, allocations: 4 kB / 0.906 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.1725, allocations: 16 kB / 0.906 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.3e-05/0.1725, allocations: 32.48 kB / 0.906 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.1729, allocations: 321.9 kB / 0.9064 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.1742, allocations: 2.197 MB / 0.9085 GB, free: 55.16 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/0.1745, allocations: 247.8 kB / 0.9087 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1747, allocations: 120.7 kB / 0.9088 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.1747, allocations: 0 / 0.9088 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.197e-05/0.1747, allocations: 30.56 kB / 0.9089 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.1747, allocations: 0 / 0.9089 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.0004152/0.1751, allocations: 305.4 kB / 0.9092 GB, free: 54.4 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.724e-05/0.1751, allocations: 59.34 kB / 0.9092 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.1753, allocations: 266.5 kB / 0.9095 GB, free: 54.06 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.1753, allocations: 25.7 kB / 0.9095 GB, free: 54.03 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.434e-05/0.1754, allocations: 207.8 kB / 0.9097 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.1754, allocations: 51.3 kB / 0.9098 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.1755, allocations: 29.7 kB / 0.9098 GB, free: 53.74 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.325e-05/0.1755, allocations: 338.8 kB / 0.9101 GB, free: 53.4 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.086e-05/0.1756, allocations: 56.44 kB / 0.9102 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.054e-05/0.1757, allocations: 140.1 kB / 0.9103 GB, free: 53.16 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.1759, allocations: 220.2 kB / 0.9105 GB, free: 52.91 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1759, allocations: 0 / 0.9105 GB, free: 52.91 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002913/0.1762, allocations: 266.7 kB / 0.9108 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.1762, allocations: 4 kB / 0.9108 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1762, allocations: 4 kB / 0.9108 GB, free: 52.63 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001126/0.1763, allocations: 24.84 kB / 0.9108 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.1765, allocations: 55.91 kB / 0.9108 GB, free: 52.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005978/0.1771, allocations: 1.32 MB / 0.9121 GB, free: 51.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.1772, allocations: 31.59 kB / 0.9122 GB, free: 51.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.1772, allocations: 12.16 kB / 0.9122 GB, free: 51.06 MB / 0.6042 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.0001031/0.1773, allocations: 169.7 kB / 0.9123 GB, free: 50.88 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.85e-05/0.1774, allocations: 23.75 kB / 0.9124 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.1774, allocations: 33.77 kB / 0.9124 GB, free: 50.83 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1774, allocations: 0 / 0.9124 GB, free: 50.83 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.1774, allocations: 0 / 0.9124 GB, free: 50.83 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1775, allocations: 0 / 0.9124 GB, free: 50.83 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005901/0.178, allocations: 0.7063 MB / 0.9131 GB, free: 50.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.1781, allocations: 4 kB / 0.9131 GB, free: 50.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.147e-05/0.1781, allocations: 24.17 kB / 0.9131 GB, free: 50 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-05/0.1782, allocations: 24.84 kB / 0.9131 GB, free: 49.98 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.1782, allocations: 8 kB / 0.9131 GB, free: 49.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005253/0.1788, allocations: 1.319 MB / 0.9144 GB, free: 48.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1788, allocations: 4.031 kB / 0.9144 GB, free: 48.51 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.179, allocations: 315.2 kB / 0.9147 GB, free: 48.17 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.15e-05/0.1791, allocations: 120.7 kB / 0.9148 GB, free: 48.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.1791, allocations: 4 kB / 0.9148 GB, free: 48.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.1792, allocations: 12 kB / 0.9149 GB, free: 48.02 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.184e-05/0.1793, allocations: 15.92 kB / 0.9149 GB, free: 48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.1793, allocations: 12 kB / 0.9149 GB, free: 47.99 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001142/0.1794, allocations: 193.9 kB / 0.9151 GB, free: 47.8 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1794, allocations: 0 / 0.9151 GB, free: 47.8 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002905/0.1797, allocations: 71.84 kB / 0.9151 GB, free: 47.73 MB / 0.6042 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.0003318/0.18, allocations: 0.8546 MB / 0.916 GB, free: 46.82 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000292/0.1803, allocations: 258.5 kB / 0.9162 GB, free: 46.55 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.1804, allocations: 4 kB / 0.9162 GB, free: 46.55 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.1805, allocations: 179.5 kB / 0.9164 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.1809, allocations: 66.33 kB / 0.9165 GB, free: 46.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.1829, allocations: 2.829 MB / 0.9192 GB, free: 43.28 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001686/0.183, allocations: 0.8025 MB / 0.92 GB, free: 42.45 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.000116/0.1832, allocations: 42.27 kB / 0.92 GB, free: 42.41 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.999e-05/0.1832, allocations: 83.41 kB / 0.9201 GB, free: 42.33 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.1833, allocations: 4 kB / 0.9201 GB, free: 42.32 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5017/0.685, allocations: 4.975 MB / 0.925 GB, free: 37.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/0.6853, allocations: 232.7 kB / 0.9252 GB, free: 37.28 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.657, allocations: 2.812 kB / 0.9252 GB, free: 37.28 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)