Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",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.001107/0.001107, allocations: 108 kB / 15.6 MB, free: 132 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.001134/0.001134, allocations: 193.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.736/1.736, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 66.7 kB / 0.6716 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2111, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005093/0.2163, allocations: 3.059 MB / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001959/0.2183, allocations: 1.325 MB / 0.7878 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.2184, allocations: 11.94 kB / 0.7878 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009965/0.2195, allocations: 330.7 kB / 0.7881 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003767/0.2199, allocations: 143.3 kB / 0.7882 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003824/0.2203, allocations: 139.6 kB / 0.7884 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.2206, allocations: 299 kB / 0.7886 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004844/0.2211, allocations: 236.5 kB / 0.7889 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.2213, allocations: 131.5 kB / 0.789 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.2216, allocations: 131.5 kB / 0.7891 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.2216, allocations: 24 kB / 0.7891 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.2219, allocations: 167.6 kB / 0.7893 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.674e-05/0.222, allocations: 79.8 kB / 0.7894 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.2221, allocations: 111.5 kB / 0.7895 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003776/0.2225, allocations: 331 kB / 0.7898 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2225, allocations: 0 / 0.7898 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2225, allocations: 0 / 0.7898 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.2226, allocations: 0 / 0.7898 GB, free: 6.867 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007873/0.2233, allocations: 0.5211 MB / 0.7903 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2234, allocations: 8.031 kB / 0.7903 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.836e-05/0.2235, allocations: 58.72 kB / 0.7904 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006082/0.2241, allocations: 76.59 kB / 0.7904 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.2244, allocations: 243.9 kB / 0.7907 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.2244, allocations: 12.75 kB / 0.7907 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.2244, allocations: 20.38 kB / 0.7907 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004169/0.2248, allocations: 302.8 kB / 0.791 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2249, allocations: 0 / 0.791 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.447e-05/0.2249, allocations: 8 kB / 0.791 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.762e-05/0.2249, allocations: 20.36 kB / 0.791 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.2253, allocations: 196.9 kB / 0.7912 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.2266, allocations: 1.475 MB / 0.7927 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00024/0.2269, allocations: 175.7 kB / 0.7928 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.725e-05/0.227, allocations: 40.84 kB / 0.7929 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.227, allocations: 0 / 0.7929 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.227, allocations: 30.56 kB / 0.7929 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.227, allocations: 0 / 0.7929 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004814/0.2275, allocations: 227.6 kB / 0.7931 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.2276, allocations: 55.41 kB / 0.7932 GB, free: 3.066 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.2278, allocations: 208.1 kB / 0.7934 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.2278, allocations: 25.7 kB / 0.7934 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.307e-05/0.2279, allocations: 163.6 kB / 0.7935 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.2279, allocations: 23.64 kB / 0.7936 GB, free: 2.637 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.228, allocations: 37.7 kB / 0.7936 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.2281, allocations: 326.8 kB / 0.7939 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.11e-05/0.2281, allocations: 31.98 kB / 0.7939 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.2283, allocations: 112.4 kB / 0.794 GB, free: 2.094 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.2284, allocations: 140.5 kB / 0.7942 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2284, allocations: 0 / 0.7942 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002985/0.2287, allocations: 186.2 kB / 0.7944 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.2288, allocations: 11.98 kB / 0.7944 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2288, allocations: 0 / 0.7944 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.2289, allocations: 28.84 kB / 0.7944 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.2291, allocations: 23.94 kB / 0.7944 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.2301, allocations: 1.423 MB / 0.7958 GB, free: 100 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.2302, allocations: 19.88 kB / 0.7958 GB, free: 80 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.2303, allocations: 4 kB / 0.7958 GB, free: 76 kB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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.0001566/0.2304, allocations: 152.8 kB / 0.796 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.208e-05/0.2305, allocations: 23.8 kB / 0.796 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.2305, allocations: 21.38 kB / 0.796 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.2305, allocations: 4.062 kB / 0.796 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2305, allocations: 4.062 kB / 0.796 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2305, allocations: 4 kB / 0.796 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004838/0.231, allocations: 447.1 kB / 0.7965 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.231, allocations: 0 / 0.7965 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.2311, allocations: 11.94 kB / 0.7965 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.032e-05/0.2312, allocations: 24.84 kB / 0.7965 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.2312, allocations: 4 kB / 0.7965 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008902/0.2321, allocations: 1.41 MB / 0.7979 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2321, allocations: 0 / 0.7979 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001984/0.2323, allocations: 208.2 kB / 0.7981 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.2324, allocations: 104.8 kB / 0.7982 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.2324, allocations: 0 / 0.7982 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.2325, allocations: 8.062 kB / 0.7982 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.337e-05/0.2325, allocations: 8 kB / 0.7982 GB, free: 13.42 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.2326, allocations: 3.984 kB / 0.7982 GB, free: 13.42 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001105/0.2327, allocations: 147 kB / 0.7983 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2327, allocations: 0 / 0.7983 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003213/0.233, allocations: 51.84 kB / 0.7984 GB, free: 13.22 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.000424/0.2334, allocations: 0.756 MB / 0.7991 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003283/0.2338, allocations: 206.5 kB / 0.7993 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2338, allocations: 0.5625 kB / 0.7993 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.2339, allocations: 150.7 kB / 0.7995 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.2343, allocations: 43.2 kB / 0.7995 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.2363, allocations: 2.048 MB / 0.8015 GB, free: 9.832 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.2366, allocations: 0.7553 MB / 0.8022 GB, free: 9.051 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000101/0.2367, allocations: 33.52 kB / 0.8023 GB, free: 9.02 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/0.2368, allocations: 47.42 kB / 0.8023 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of SimCode: time 2.31e-07/0.2368, allocations: 0 / 0.8023 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2377/0.4745, allocations: 3.614 MB / 0.8058 GB, free: 5.469 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.7, allocations: 7.938 kB / 0.8059 GB, free: 5.461 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)