Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_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.007635/0.007635, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001863/0.001863, allocations: 187.7 kB / 16.67 MB, free: 5.977 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.583/2.583, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.89 kB / 1.054 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2887, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005467/0.2942, allocations: 3.832 MB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002746/0.297, allocations: 1.722 MB / 1.213 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002821/0.2973, allocations: 11.94 kB / 1.213 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.2987, allocations: 498.1 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0006218/0.2993, allocations: 222.9 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005882/0.3, allocations: 211.5 kB / 1.214 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000639/0.3006, allocations: 478.4 kB / 1.214 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005945/0.3012, allocations: 365.4 kB / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.3015, allocations: 203.2 kB / 1.215 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004378/0.302, allocations: 215.2 kB / 1.215 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.028e-05/0.302, allocations: 31.98 kB / 1.215 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004346/0.3025, allocations: 243.4 kB / 1.215 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.3026, allocations: 115.7 kB / 1.215 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.3028, allocations: 175.2 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006947/0.3035, allocations: 0.4984 MB / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3035, allocations: 0 / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.046e-06/0.3035, allocations: 0 / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.751e-05/0.3035, allocations: 3.938 kB / 1.216 GB, free: 1.379 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00122/0.3048, allocations: 0.6316 MB / 1.216 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3048, allocations: 8.625 kB / 1.216 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.519e-05/0.3049, allocations: 74.66 kB / 1.217 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009842/0.3059, allocations: 136.3 kB / 1.217 GB, free: 484 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.3064, allocations: 295.6 kB / 1.217 GB, free: 148 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.3064, allocations: 21.03 kB / 1.217 GB, free: 128 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.3065, allocations: 28.36 kB / 1.217 GB, free: 100 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006517/0.3071, allocations: 463.7 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3071, allocations: 0 / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.3072, allocations: 15.98 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.727e-05/0.3072, allocations: 32.55 kB / 1.217 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004598/0.3077, allocations: 317.9 kB / 1.218 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.3098, allocations: 2.185 MB / 1.22 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.3101, allocations: 251.8 kB / 1.22 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.3104, allocations: 108.8 kB / 1.22 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.3104, allocations: 7.938 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.3104, allocations: 34.56 kB / 1.22 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 2.785e-06/0.3104, allocations: 3.984 kB / 1.22 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.000581/0.311, allocations: 298 kB / 1.221 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.3111, allocations: 55.34 kB / 1.221 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.3113, allocations: 266.5 kB / 1.221 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.3114, allocations: 25.7 kB / 1.221 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.3115, allocations: 219.7 kB / 1.221 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.3115, allocations: 47.36 kB / 1.221 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.93e-05/0.3116, allocations: 49.84 kB / 1.221 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.3117, allocations: 334.8 kB / 1.222 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-05/0.3118, allocations: 56.44 kB / 1.222 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.312, allocations: 148.4 kB / 1.222 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.3122, allocations: 224.8 kB / 1.222 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3122, allocations: 4 kB / 1.222 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003849/0.3126, allocations: 257.9 kB / 1.222 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.3126, allocations: 7.984 kB / 1.222 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3126, allocations: 4 kB / 1.222 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.3128, allocations: 33.22 kB / 1.222 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.313, allocations: 47.92 kB / 1.222 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.314, allocations: 1.418 MB / 1.224 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.3142, allocations: 31.72 kB / 1.224 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.3143, allocations: 8 kB / 1.224 GB, free: 8.621 MB / 0.9825 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.0002067/0.3145, allocations: 173.6 kB / 1.224 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.139e-05/0.3145, allocations: 23.81 kB / 1.224 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.98e-05/0.3146, allocations: 29.83 kB / 1.224 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3146, allocations: 4 kB / 1.224 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3146, allocations: 0 / 1.224 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3146, allocations: 3.984 kB / 1.224 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.3157, allocations: 0.7024 MB / 1.225 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3157, allocations: 0 / 1.225 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.828e-05/0.3158, allocations: 23.98 kB / 1.225 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.566e-05/0.3159, allocations: 28.84 kB / 1.225 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3159, allocations: 8 kB / 1.225 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.3171, allocations: 1.411 MB / 1.226 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.3171, allocations: 4.188 kB / 1.226 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.3175, allocations: 323.8 kB / 1.226 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.3176, allocations: 120.7 kB / 1.226 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.3177, allocations: 4 kB / 1.226 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.3178, allocations: 12 kB / 1.226 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.3179, allocations: 15.86 kB / 1.227 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.3179, allocations: 8 kB / 1.227 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001847/0.3181, allocations: 194 kB / 1.227 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3181, allocations: 4 kB / 1.227 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003975/0.3185, allocations: 75.75 kB / 1.227 GB, free: 5.18 MB / 0.9825 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.0006057/0.3191, allocations: 0.8546 MB / 1.228 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004776/0.3196, allocations: 271 kB / 1.228 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3196, allocations: 4 kB / 1.228 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.3198, allocations: 178.6 kB / 1.228 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004447/0.3203, allocations: 49.16 kB / 1.228 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.3234, allocations: 2.721 MB / 1.231 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.3238, allocations: 0.7831 MB / 1.232 GB, free: 40 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001513/0.3239, allocations: 50.3 kB / 1.232 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.324, allocations: 79.42 kB / 1.232 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of SimCode: time 1.81e-07/0.3241, allocations: 0 / 1.232 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.3503, allocations: 5.463 MB / 1.237 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.173/9.523, allocations: 15.8 kB / 1.237 GB, free: 10.58 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches