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.0009451/0.0009451, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.008046/0.008046, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.35/1.35, allocations: 205.4 MB / 222.4 MB, free: 5.789 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.633/1.633, allocations: 292.7 MB / 0.5502 GB, free: 14.47 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.0004724/0.0004725, allocations: 15.45 kB / 0.6744 GB, free: 26.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2084, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003239/0.2117, allocations: 2.753 MB / 0.7907 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001842/0.2136, allocations: 1.298 MB / 0.7919 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.855e-05/0.2137, allocations: 4 kB / 0.792 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.2139, allocations: 43.64 kB / 0.792 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003579/0.2142, allocations: 131.4 kB / 0.7921 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.2146, allocations: 135.7 kB / 0.7922 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003904/0.215, allocations: 434.8 kB / 0.7927 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.2153, allocations: 225.5 kB / 0.7929 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.2154, allocations: 99.56 kB / 0.793 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.2157, allocations: 139.4 kB / 0.7931 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.47e-05/0.2157, allocations: 11.98 kB / 0.7931 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002868/0.216, allocations: 199.6 kB / 0.7933 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.111e-05/0.2161, allocations: 71.8 kB / 0.7934 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.2162, allocations: 125.2 kB / 0.7935 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.2166, allocations: 335.2 kB / 0.7938 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2166, allocations: 7.938 kB / 0.7938 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2166, allocations: 0 / 0.7938 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.2166, allocations: 0 / 0.7938 GB, free: 5.449 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.0006554/0.2172, allocations: 483.1 kB / 0.7943 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2173, allocations: 11.97 kB / 0.7943 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.787e-05/0.2174, allocations: 54.73 kB / 0.7943 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005614/0.2179, allocations: 92.56 kB / 0.7944 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.2182, allocations: 235 kB / 0.7947 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.2182, allocations: 12.75 kB / 0.7947 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.2182, allocations: 16.38 kB / 0.7947 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.2187, allocations: 310.8 kB / 0.795 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2187, allocations: 4 kB / 0.795 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.2187, allocations: 4 kB / 0.795 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.2187, allocations: 20.36 kB / 0.795 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.219, allocations: 193 kB / 0.7952 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.2204, allocations: 1.475 MB / 0.7966 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.2206, allocations: 179.7 kB / 0.7968 GB, free: 2.086 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.497e-05/0.2207, allocations: 28.84 kB / 0.7968 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.2207, allocations: 8 kB / 0.7968 GB, free: 2.047 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.2207, allocations: 34.56 kB / 0.7969 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.2207, allocations: 0 / 0.7969 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004308/0.2212, allocations: 227.3 kB / 0.7971 GB, free: 1.754 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.2212, allocations: 51.41 kB / 0.7971 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.2214, allocations: 204 kB / 0.7973 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.2214, allocations: 33.7 kB / 0.7974 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.2215, allocations: 163.6 kB / 0.7975 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.2215, allocations: 27.8 kB / 0.7976 GB, free: 1.254 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.2216, allocations: 21.7 kB / 0.7976 GB, free: 1.227 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2217, allocations: 330.8 kB / 0.7979 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.946e-05/0.2218, allocations: 31.98 kB / 0.7979 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.203e-05/0.2219, allocations: 103.4 kB / 0.798 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.222, allocations: 148.4 kB / 0.7982 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.222, allocations: 0 / 0.7982 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000291/0.2223, allocations: 194.2 kB / 0.7983 GB, free: 368 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2223, allocations: 8 kB / 0.7983 GB, free: 360 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2224, allocations: 0 / 0.7983 GB, free: 360 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.2225, allocations: 28.84 kB / 0.7984 GB, free: 328 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.2226, allocations: 27.92 kB / 0.7984 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009241/0.2235, allocations: 1.32 MB / 0.7997 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.2237, allocations: 11.84 kB / 0.7997 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.2237, allocations: 15.97 kB / 0.7997 GB, free: 14.8 MB / 0.6231 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.0001184/0.2238, allocations: 151.3 kB / 0.7999 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.896e-05/0.2239, allocations: 23.78 kB / 0.7999 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.2239, allocations: 17.41 kB / 0.7999 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2239, allocations: 3.984 kB / 0.7999 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.2239, allocations: 0 / 0.7999 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2239, allocations: 0 / 0.7999 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004642/0.2244, allocations: 443.2 kB / 0.8003 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2244, allocations: 96 / 0.8003 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.619e-05/0.2244, allocations: 15.92 kB / 0.8003 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-05/0.2245, allocations: 28.78 kB / 0.8004 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.004e-06/0.2245, allocations: 0 / 0.8004 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008146/0.2254, allocations: 1.312 MB / 0.8017 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2254, allocations: 0 / 0.8017 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002166/0.2256, allocations: 216.1 kB / 0.8019 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.049e-05/0.2257, allocations: 93 kB / 0.8019 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.2257, allocations: 12.03 kB / 0.802 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2258, allocations: 4 kB / 0.802 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.2258, allocations: 3.984 kB / 0.802 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.2258, allocations: 7.938 kB / 0.802 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001224/0.226, allocations: 148.1 kB / 0.8021 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.9e-07/0.226, allocations: 4 kB / 0.8021 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004808/0.2265, allocations: 55.75 kB / 0.8022 GB, free: 12.06 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.0005381/0.227, allocations: 0.7405 MB / 0.8029 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003123/0.2273, allocations: 207 kB / 0.8031 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2273, allocations: 4.125 kB / 0.8031 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.2275, allocations: 158.6 kB / 0.8032 GB, free: 10.9 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.2279, allocations: 30.38 kB / 0.8033 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.2303, allocations: 2.135 MB / 0.8054 GB, free: 8.598 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.2306, allocations: 0.7436 MB / 0.8061 GB, free: 7.828 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.933e-05/0.2307, allocations: 29.52 kB / 0.8061 GB, free: 7.801 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.7e-05/0.2307, allocations: 55.61 kB / 0.8062 GB, free: 7.746 MB / 0.6231 GB Notification: Performance of SimCode: time 3.01e-07/0.2307, allocations: 3.938 kB / 0.8062 GB, free: 7.742 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01408/0.2448, allocations: 3.37 MB / 0.8095 GB, free: 4.523 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.2451, allocations: 223.2 kB / 0.8097 GB, free: 4.266 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/1.882, allocations: 4 kB / 0.8097 GB, free: 4.262 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)