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.001321/0.001322, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00133/0.00133, allocations: 193.6 kB / 16.14 MB, free: 6.707 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.377/1.377, allocations: 205.1 MB / 222 MB, free: 4.996 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.609/1.609, allocations: 292.3 MB / 0.5484 GB, free: 13.72 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.001339/0.001339, allocations: 70.83 kB / 0.6709 GB, free: 26.57 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1913, allocations: 114.6 MB / 0.7828 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004153/0.1955, allocations: 3.112 MB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1972, allocations: 1.325 MB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.606e-05/0.1973, allocations: 4 kB / 0.7871 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0008261/0.1982, allocations: 307 kB / 0.7874 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.1984, allocations: 135.4 kB / 0.7876 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002658/0.1987, allocations: 123.7 kB / 0.7877 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003528/0.1991, allocations: 438.8 kB / 0.7881 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.1993, allocations: 164.3 kB / 0.7882 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.1994, allocations: 107.6 kB / 0.7884 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.1997, allocations: 135.5 kB / 0.7885 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.058e-05/0.1997, allocations: 16 kB / 0.7885 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002871/0.2, allocations: 215.4 kB / 0.7887 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.277e-05/0.2001, allocations: 71.81 kB / 0.7888 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.2002, allocations: 107.5 kB / 0.7889 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000337/0.2006, allocations: 343.2 kB / 0.7892 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2006, allocations: 4 kB / 0.7892 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.62e-07/0.2006, allocations: 0 / 0.7892 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.2006, allocations: 0 / 0.7892 GB, free: 7.383 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.0007093/0.2013, allocations: 0.5146 MB / 0.7897 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2013, allocations: 12.03 kB / 0.7897 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.69e-05/0.2014, allocations: 54.72 kB / 0.7898 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005291/0.2019, allocations: 76.67 kB / 0.7898 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.2022, allocations: 239.9 kB / 0.7901 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.2022, allocations: 12.75 kB / 0.7901 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.2022, allocations: 16.38 kB / 0.7901 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.2027, allocations: 310.9 kB / 0.7904 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2027, allocations: 7.938 kB / 0.7904 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.2027, allocations: 12 kB / 0.7904 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/0.2027, allocations: 16.38 kB / 0.7904 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.203, allocations: 196.9 kB / 0.7906 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.2044, allocations: 1.468 MB / 0.7921 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.2046, allocations: 179.7 kB / 0.7922 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.12e-05/0.2047, allocations: 28.84 kB / 0.7922 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.2047, allocations: 4 kB / 0.7923 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.2047, allocations: 42.5 kB / 0.7923 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.2047, allocations: 0 / 0.7923 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000451/0.2052, allocations: 219.5 kB / 0.7925 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.2052, allocations: 51.41 kB / 0.7926 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.2054, allocations: 200.1 kB / 0.7927 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.2054, allocations: 25.7 kB / 0.7928 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.517e-05/0.2055, allocations: 167.5 kB / 0.7929 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.2055, allocations: 35.78 kB / 0.793 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.2056, allocations: 37.62 kB / 0.793 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.878e-05/0.2057, allocations: 326.8 kB / 0.7933 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.11e-05/0.2058, allocations: 39.97 kB / 0.7933 GB, free: 2.742 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.975e-05/0.2059, allocations: 96.58 kB / 0.7934 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.206, allocations: 152.4 kB / 0.7936 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.206, allocations: 0 / 0.7936 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002765/0.2063, allocations: 182.4 kB / 0.7938 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2063, allocations: 12.03 kB / 0.7938 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2063, allocations: 0 / 0.7938 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001465/0.2065, allocations: 28.78 kB / 0.7938 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.2066, allocations: 27.98 kB / 0.7938 GB, free: 2.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008743/0.2075, allocations: 1.315 MB / 0.7951 GB, free: 0.7227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.2076, allocations: 23.75 kB / 0.7951 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.2076, allocations: 4 kB / 0.7951 GB, free: 0.6953 MB / 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.0001056/0.2077, allocations: 141.8 kB / 0.7953 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.2078, allocations: 23.94 kB / 0.7953 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.516e-05/0.2078, allocations: 17.39 kB / 0.7953 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2078, allocations: 0 / 0.7953 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.2078, allocations: 0 / 0.7953 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.2078, allocations: 4.047 kB / 0.7953 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004446/0.2083, allocations: 451.1 kB / 0.7957 GB, free: 8 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2083, allocations: 0 / 0.7957 GB, free: 8 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.913e-05/0.2083, allocations: 8.062 kB / 0.7958 GB, free: 0 / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.762e-05/0.2084, allocations: 28.84 kB / 0.7958 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-06/0.2085, allocations: 4 kB / 0.7958 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008561/0.2093, allocations: 1.319 MB / 0.7971 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2093, allocations: 0 / 0.7971 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.2095, allocations: 208.5 kB / 0.7973 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.761e-05/0.2096, allocations: 100.9 kB / 0.7974 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.2096, allocations: 3.938 kB / 0.7974 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.2098, allocations: 4 kB / 0.7974 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.2098, allocations: 16.08 kB / 0.7974 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-06/0.2098, allocations: 0 / 0.7974 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000118/0.2099, allocations: 152.1 kB / 0.7975 GB, free: 14 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2099, allocations: 0 / 0.7975 GB, free: 14 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003036/0.2102, allocations: 51.84 kB / 0.7976 GB, free: 13.95 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.0004239/0.2107, allocations: 0.7482 MB / 0.7983 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.211, allocations: 210.5 kB / 0.7985 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.211, allocations: 4 kB / 0.7985 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.2111, allocations: 143.2 kB / 0.7987 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.2115, allocations: 38.27 kB / 0.7987 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.2135, allocations: 2.119 MB / 0.8008 GB, free: 10.51 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.2138, allocations: 0.7553 MB / 0.8015 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.998e-05/0.2139, allocations: 21.55 kB / 0.8015 GB, free: 9.711 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/0.2139, allocations: 55.41 kB / 0.8016 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of SimCode: time 3.51e-07/0.214, allocations: 0 / 0.8016 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01296/0.2269, allocations: 3.464 MB / 0.805 GB, free: 6.324 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.2271, allocations: 215.7 kB / 0.8052 GB, free: 6.074 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.871, allocations: 4.062 kB / 0.8052 GB, free: 6.07 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)