Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 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.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_Buildings_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.001292/0.001292, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001338/0.001338, allocations: 195.3 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.29/1.29, 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.61/1.61, allocations: 292.3 MB / 0.5484 GB, free: 13.65 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.001516/0.001516, allocations: 76.55 kB / 0.6709 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1928, allocations: 114.6 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005099/0.1979, allocations: 3.848 MB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003043/0.201, allocations: 1.746 MB / 0.7883 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.2012, allocations: 7.938 kB / 0.7883 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.2025, allocations: 474 kB / 0.7887 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004611/0.203, allocations: 203.1 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004818/0.2035, allocations: 203.6 kB / 0.7891 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000542/0.204, allocations: 0.6544 MB / 0.7897 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003512/0.2044, allocations: 245.5 kB / 0.79 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.2046, allocations: 163.3 kB / 0.7901 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.2049, allocations: 223.2 kB / 0.7904 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.999e-05/0.2049, allocations: 24 kB / 0.7904 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004561/0.2054, allocations: 303.3 kB / 0.7907 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.2055, allocations: 119.7 kB / 0.7908 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.2057, allocations: 163.2 kB / 0.7909 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005394/0.2063, allocations: 0.5061 MB / 0.7914 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2063, allocations: 0 / 0.7914 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2063, allocations: 0 / 0.7914 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.2063, allocations: 0 / 0.7914 GB, free: 5.027 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009595/0.2073, allocations: 0.6316 MB / 0.792 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2073, allocations: 8.031 kB / 0.7921 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.169e-05/0.2074, allocations: 74.7 kB / 0.7921 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008754/0.2083, allocations: 136.3 kB / 0.7923 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.2086, allocations: 279.7 kB / 0.7925 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.2087, allocations: 25.03 kB / 0.7925 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.2087, allocations: 28.38 kB / 0.7926 GB, free: 3.762 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006123/0.2093, allocations: 467.7 kB / 0.793 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2093, allocations: 4 kB / 0.793 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.2094, allocations: 12 kB / 0.793 GB, free: 3.25 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.513e-05/0.2094, allocations: 28.55 kB / 0.7931 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.2099, allocations: 321.9 kB / 0.7934 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.2119, allocations: 2.197 MB / 0.7955 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.2122, allocations: 243.8 kB / 0.7957 GB, free: 240 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.2124, allocations: 116.8 kB / 0.7959 GB, free: 120 kB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.2125, allocations: 4 kB / 0.7959 GB, free: 116 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.2125, allocations: 30.56 kB / 0.7959 GB, free: 76 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.2125, allocations: 0 / 0.7959 GB, free: 76 kB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0005707/0.2131, allocations: 299.7 kB / 0.7962 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.2131, allocations: 51.41 kB / 0.7962 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.2134, allocations: 274.5 kB / 0.7965 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.2134, allocations: 29.7 kB / 0.7965 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.2135, allocations: 203.8 kB / 0.7967 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.2136, allocations: 51.3 kB / 0.7968 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.235e-05/0.2137, allocations: 49.84 kB / 0.7968 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.2138, allocations: 338.9 kB / 0.7971 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.2139, allocations: 60.38 kB / 0.7972 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.2141, allocations: 148 kB / 0.7973 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.2143, allocations: 218.9 kB / 0.7975 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2143, allocations: 4 kB / 0.7975 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003992/0.2147, allocations: 262.1 kB / 0.7978 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.2147, allocations: 10.66 kB / 0.7978 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2148, allocations: 0 / 0.7978 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.2149, allocations: 28.84 kB / 0.7978 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2151, allocations: 47.91 kB / 0.7979 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/0.2161, allocations: 1.316 MB / 0.7992 GB, free: 12.42 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.2163, allocations: 31.75 kB / 0.7992 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.2163, allocations: 15.98 kB / 0.7992 GB, free: 12.38 MB / 0.6231 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.0001468/0.2165, allocations: 165.9 kB / 0.7994 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.2165, allocations: 27.66 kB / 0.7994 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/0.2166, allocations: 33.77 kB / 0.7994 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2166, allocations: 0 / 0.7994 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2166, allocations: 0 / 0.7994 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.2166, allocations: 0 / 0.7994 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008203/0.2174, allocations: 0.7062 MB / 0.8001 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2174, allocations: 7.938 kB / 0.8001 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.703e-05/0.2175, allocations: 27.92 kB / 0.8001 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.655e-05/0.2176, allocations: 25.03 kB / 0.8002 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.2176, allocations: 8 kB / 0.8002 GB, free: 11.28 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008555/0.2185, allocations: 1.308 MB / 0.8014 GB, free: 9.844 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.2185, allocations: 8.016 kB / 0.8015 GB, free: 9.836 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.2188, allocations: 319.1 kB / 0.8018 GB, free: 9.488 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.74e-05/0.2189, allocations: 108.8 kB / 0.8019 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.219, allocations: 8 kB / 0.8019 GB, free: 9.355 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2191, allocations: 7.984 kB / 0.8019 GB, free: 9.348 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.164e-05/0.2192, allocations: 19.98 kB / 0.8019 GB, free: 9.328 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.2192, allocations: 7.938 kB / 0.8019 GB, free: 9.32 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001776/0.2193, allocations: 193.9 kB / 0.8021 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of sort global known variables: time 9e-08/0.2194, allocations: 0 / 0.8021 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003731/0.2197, allocations: 87.69 kB / 0.8022 GB, free: 9.047 MB / 0.6231 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.0005402/0.2203, allocations: 0.8391 MB / 0.803 GB, free: 8.156 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003942/0.2207, allocations: 277.7 kB / 0.8033 GB, free: 7.875 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2207, allocations: 0 / 0.8033 GB, free: 7.875 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.2209, allocations: 182.5 kB / 0.8034 GB, free: 7.684 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.2214, allocations: 63.28 kB / 0.8035 GB, free: 7.621 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.2242, allocations: 2.829 MB / 0.8063 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.2246, allocations: 0.7908 MB / 0.807 GB, free: 3.789 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001478/0.2247, allocations: 50.25 kB / 0.8071 GB, free: 3.738 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2248, allocations: 83.41 kB / 0.8072 GB, free: 3.656 MB / 0.6231 GB Notification: Performance of SimCode: time 3.6e-07/0.2248, allocations: 0 / 0.8072 GB, free: 3.656 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01528/0.2401, allocations: 5.071 MB / 0.8121 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/0.2403, allocations: 209.8 kB / 0.8123 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.651/1.891, allocations: 0 / 0.8123 GB, free: 14.46 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)