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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.004198/0.004198, allocations: 96.7 kB / 15.73 MB, free: 6.016 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.001228/0.001228, allocations: 197.9 kB / 16.67 MB, free: 5.926 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.274/1.274, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.509/2.509, allocations: 482.6 MB / 0.755 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 68.3 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2942, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005145/0.2994, allocations: 3.84 MB / 1.246 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002563/0.3019, allocations: 1.726 MB / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.3021, allocations: 4 kB / 1.247 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.3034, allocations: 0.4941 MB / 1.248 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004454/0.3039, allocations: 214.9 kB / 1.248 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004943/0.3044, allocations: 210.8 kB / 1.248 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005079/0.3049, allocations: 482.3 kB / 1.249 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005614/0.3054, allocations: 369.4 kB / 1.249 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.3056, allocations: 195.2 kB / 1.249 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/0.306, allocations: 219.2 kB / 1.249 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.299e-05/0.3061, allocations: 28 kB / 1.249 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004102/0.3065, allocations: 247.4 kB / 1.25 GB, free: 0.9219 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.3066, allocations: 127.7 kB / 1.25 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.3068, allocations: 167.2 kB / 1.25 GB, free: 0.6328 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000585/0.3074, allocations: 0.502 MB / 1.25 GB, free: 132 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3074, allocations: 0 / 1.25 GB, free: 132 kB / 0.9669 GB Notification: Performance of FrontEnd: time 1.213e-06/0.3074, allocations: 0 / 1.25 GB, free: 132 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.066e-05/0.3074, allocations: 0 / 1.25 GB, free: 132 kB / 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.001027/0.3085, allocations: 0.6521 MB / 1.251 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3085, allocations: 8.031 kB / 1.251 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.796e-05/0.3086, allocations: 66.67 kB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008501/0.3095, allocations: 136.6 kB / 1.251 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.3098, allocations: 300.3 kB / 1.252 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.3099, allocations: 25.03 kB / 1.252 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.346e-05/0.3099, allocations: 24.38 kB / 1.252 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006349/0.3106, allocations: 467.7 kB / 1.252 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.3106, allocations: 0 / 1.252 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.3106, allocations: 12 kB / 1.252 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.225e-05/0.3107, allocations: 32.55 kB / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.3111, allocations: 321.9 kB / 1.252 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002054/0.3132, allocations: 2.185 MB / 1.254 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.3136, allocations: 255.8 kB / 1.255 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.3138, allocations: 105 kB / 1.255 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.3138, allocations: 8 kB / 1.255 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.3139, allocations: 30.56 kB / 1.255 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.3139, allocations: 4 kB / 1.255 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.000556/0.3144, allocations: 303.4 kB / 1.255 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3145, allocations: 51.41 kB / 1.255 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.3147, allocations: 270.5 kB / 1.255 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.3148, allocations: 25.7 kB / 1.256 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.3149, allocations: 212.4 kB / 1.256 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.3149, allocations: 63.5 kB / 1.256 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/0.315, allocations: 49.89 kB / 1.256 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3152, allocations: 334.8 kB / 1.256 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.601e-05/0.3153, allocations: 60.44 kB / 1.256 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.3154, allocations: 141.2 kB / 1.256 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.3157, allocations: 216.8 kB / 1.257 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3157, allocations: 0 / 1.257 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003956/0.3161, allocations: 270 kB / 1.257 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3161, allocations: 4 kB / 1.257 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3161, allocations: 7.938 kB / 1.257 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001496/0.3163, allocations: 33.2 kB / 1.257 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.3165, allocations: 47.92 kB / 1.257 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.3175, allocations: 1.418 MB / 1.258 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.3177, allocations: 27.78 kB / 1.258 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.3177, allocations: 12 kB / 1.258 GB, free: 7.344 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.0001493/0.3179, allocations: 165.7 kB / 1.258 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.3179, allocations: 23.86 kB / 1.258 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.318, allocations: 25.92 kB / 1.259 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.318, allocations: 8 kB / 1.259 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-06/0.318, allocations: 0 / 1.259 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.318, allocations: 0 / 1.259 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008391/0.3188, allocations: 0.7142 MB / 1.259 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3188, allocations: 0 / 1.259 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.158e-05/0.3189, allocations: 23.98 kB / 1.259 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.611e-05/0.319, allocations: 28.78 kB / 1.259 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.319, allocations: 8 kB / 1.259 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009801/0.32, allocations: 1.422 MB / 1.261 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.32, allocations: 3.938 kB / 1.261 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/0.3204, allocations: 313.3 kB / 1.261 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.421e-05/0.3205, allocations: 120.9 kB / 1.261 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.3205, allocations: 4 kB / 1.261 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.3206, allocations: 12 kB / 1.261 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.718e-05/0.3207, allocations: 15.92 kB / 1.261 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.3207, allocations: 4 kB / 1.261 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000184/0.3209, allocations: 194 kB / 1.261 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2e-07/0.3209, allocations: 3.938 kB / 1.261 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003548/0.3213, allocations: 83.78 kB / 1.261 GB, free: 3.887 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.0006136/0.3219, allocations: 0.8569 MB / 1.262 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004128/0.3223, allocations: 267 kB / 1.262 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3223, allocations: 4.188 kB / 1.262 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000206/0.3225, allocations: 182.5 kB / 1.263 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.323, allocations: 67.2 kB / 1.263 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.3258, allocations: 2.714 MB / 1.265 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.3262, allocations: 0.7946 MB / 1.266 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001275/0.3264, allocations: 38.27 kB / 1.266 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3265, allocations: 91.41 kB / 1.266 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of SimCode: time 2.9e-07/0.3265, allocations: 0 / 1.266 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8392/1.166, allocations: 5.393 MB / 1.272 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.94/18.1, allocations: 13.64 kB / 1.272 GB, free: 9.348 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=400 --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