Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_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.005156/0.005156, allocations: 102 kB / 15.73 MB, free: 6.051 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.00117/0.001171, allocations: 195 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.722/2.722, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 67.84 kB / 1.054 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.297, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005157/0.3022, allocations: 3.079 MB / 1.21 GB, free: 7.07 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002266/0.3045, allocations: 1.332 MB / 1.212 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002277/0.3047, allocations: 4 kB / 1.212 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.3059, allocations: 330.7 kB / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004961/0.3064, allocations: 139.3 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004677/0.3069, allocations: 139.6 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004986/0.3074, allocations: 306.9 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004707/0.3079, allocations: 240.5 kB / 1.213 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.3081, allocations: 119.6 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.3085, allocations: 143.4 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.006e-05/0.3085, allocations: 20 kB / 1.213 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.3089, allocations: 163.7 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.309, allocations: 79.8 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.3091, allocations: 107.5 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005375/0.3097, allocations: 342.9 kB / 1.214 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3097, allocations: 0 / 1.214 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3097, allocations: 0 / 1.214 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.3097, allocations: 4 kB / 1.214 GB, free: 3.629 MB / 0.9669 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.0009318/0.3107, allocations: 0.5146 MB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3107, allocations: 8.625 kB / 1.214 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.054e-05/0.3108, allocations: 54.73 kB / 1.214 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006341/0.3114, allocations: 72.67 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.3118, allocations: 251.9 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.3118, allocations: 16.73 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.3119, allocations: 20.38 kB / 1.215 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.3123, allocations: 295.4 kB / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.3124, allocations: 7.938 kB / 1.215 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.57e-05/0.3124, allocations: 8 kB / 1.215 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.815e-05/0.3124, allocations: 20.36 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.3128, allocations: 193 kB / 1.215 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.3145, allocations: 1.46 MB / 1.216 GB, free: 456 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.3148, allocations: 179.6 kB / 1.217 GB, free: 248 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.144e-05/0.3148, allocations: 40.84 kB / 1.217 GB, free: 204 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.3149, allocations: 3.938 kB / 1.217 GB, free: 200 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.3149, allocations: 30.56 kB / 1.217 GB, free: 160 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.3149, allocations: 3.938 kB / 1.217 GB, free: 156 kB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0005422/0.3154, allocations: 223.5 kB / 1.217 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.3155, allocations: 55.41 kB / 1.217 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.3157, allocations: 210.5 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.3158, allocations: 29.7 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.3159, allocations: 167.6 kB / 1.217 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.3159, allocations: 23.66 kB / 1.217 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/0.316, allocations: 33.7 kB / 1.217 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3161, allocations: 330.8 kB / 1.218 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.196e-05/0.3162, allocations: 31.89 kB / 1.218 GB, free: 15 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.3163, allocations: 100.6 kB / 1.218 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.3164, allocations: 152.6 kB / 1.218 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3165, allocations: 0 / 1.218 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003192/0.3168, allocations: 186.2 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.3168, allocations: 9.406 kB / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3168, allocations: 3.938 kB / 1.218 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.317, allocations: 28.84 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.3171, allocations: 23.98 kB / 1.218 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.3182, allocations: 1.426 MB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.3184, allocations: 23.78 kB / 1.22 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.3184, allocations: 4 kB / 1.22 GB, free: 12.84 MB / 0.9825 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.0001395/0.3186, allocations: 153.6 kB / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.788e-05/0.3186, allocations: 11.91 kB / 1.22 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.3186, allocations: 17.39 kB / 1.22 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3186, allocations: 0 / 1.22 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3186, allocations: 4.094 kB / 1.22 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3187, allocations: 8 kB / 1.22 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000551/0.3192, allocations: 443.1 kB / 1.22 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3192, allocations: 0 / 1.22 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.3193, allocations: 8 kB / 1.22 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.946e-05/0.3194, allocations: 20.84 kB / 1.22 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.3194, allocations: 11.94 kB / 1.22 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009472/0.3203, allocations: 1.41 MB / 1.222 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3203, allocations: 4.156 kB / 1.222 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.3206, allocations: 216.1 kB / 1.222 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.76e-05/0.3207, allocations: 100.9 kB / 1.222 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.3207, allocations: 0 / 1.222 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3208, allocations: 7.984 kB / 1.222 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.3208, allocations: 7.984 kB / 1.222 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.3209, allocations: 8 kB / 1.222 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001317/0.321, allocations: 148.3 kB / 1.222 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.321, allocations: 0 / 1.222 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003552/0.3214, allocations: 51.84 kB / 1.222 GB, free: 9.988 MB / 0.9825 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.0005191/0.3219, allocations: 0.7443 MB / 1.223 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003841/0.3223, allocations: 202.5 kB / 1.223 GB, free: 9 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3223, allocations: 0 / 1.223 GB, free: 9 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.3225, allocations: 150.7 kB / 1.223 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.3229, allocations: 37.19 kB / 1.223 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.3252, allocations: 2.048 MB / 1.225 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.3255, allocations: 0.7514 MB / 1.226 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.991e-05/0.3256, allocations: 17.55 kB / 1.226 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.661e-05/0.3257, allocations: 55.41 kB / 1.226 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.3257, allocations: 0 / 1.226 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02378/0.3495, allocations: 3.764 MB / 1.23 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.97/9.32, allocations: 11.22 kB / 1.23 GB, free: 2.125 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches