Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 119.6 kB / 17.16 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 211 kB / 20.13 MB, free: 2.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.794/2.794, allocations: 0.49 GB / 0.7923 GB, free: 1.289 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 63.89 kB / 1.149 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021/1.023, allocations: 176.1 MB / 1.321 GB, free: 24.77 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004855/1.027, allocations: 3.906 MB / 1.325 GB, free: 22.13 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002393/1.03, allocations: 1.805 MB / 1.327 GB, free: 20.88 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/1.03, allocations: 9.094 kB / 1.327 GB, free: 20.88 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001227/1.031, allocations: 0.5044 MB / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004688/1.032, allocations: 223 kB / 1.328 GB, free: 20.45 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005161/1.032, allocations: 217.4 kB / 1.328 GB, free: 20.34 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005881/1.033, allocations: 470.5 kB / 1.328 GB, free: 20.14 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005492/1.033, allocations: 296.8 kB / 1.329 GB, free: 20.01 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/1.034, allocations: 198.6 kB / 1.329 GB, free: 19.93 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003995/1.034, allocations: 234.2 kB / 1.329 GB, free: 19.83 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.795e-05/1.034, allocations: 27.94 kB / 1.329 GB, free: 19.83 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004769/1.035, allocations: 259 kB / 1.329 GB, free: 19.75 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001328/1.035, allocations: 127.9 kB / 1.329 GB, free: 19.69 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001763/1.035, allocations: 169.3 kB / 1.33 GB, free: 19.59 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007013/1.036, allocations: 0.4981 MB / 1.33 GB, free: 19.42 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.036, allocations: 0 / 1.33 GB, free: 19.42 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.843e-06/1.036, allocations: 1.406 kB / 1.33 GB, free: 19.42 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.897e-06/1.036, allocations: 0 / 1.33 GB, free: 19.42 MB / 1.061 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.001005/1.037, allocations: 0.6393 MB / 1.331 GB, free: 18.89 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/1.037, allocations: 14.17 kB / 1.331 GB, free: 18.88 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.866e-05/1.037, allocations: 7.281 kB / 1.331 GB, free: 18.88 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.887e-05/1.037, allocations: 79.33 kB / 1.331 GB, free: 18.82 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009174/1.038, allocations: 137.2 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000355/1.038, allocations: 288.5 kB / 1.331 GB, free: 18.54 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/1.038, allocations: 24.58 kB / 1.331 GB, free: 18.53 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.685e-05/1.038, allocations: 30.59 kB / 1.331 GB, free: 18.52 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006773/1.039, allocations: 469 kB / 1.332 GB, free: 18.26 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/1.039, allocations: 1.469 kB / 1.332 GB, free: 18.26 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/1.039, allocations: 10.75 kB / 1.332 GB, free: 18.25 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.205e-05/1.039, allocations: 27.56 kB / 1.332 GB, free: 18.25 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/1.039, allocations: 325.1 kB / 1.332 GB, free: 18.14 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/1.041, allocations: 2.188 MB / 1.334 GB, free: 16.21 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/1.042, allocations: 236.2 kB / 1.334 GB, free: 16.04 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002422/1.042, allocations: 96.62 kB / 1.335 GB, free: 16.01 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/1.042, allocations: 1.219 kB / 1.335 GB, free: 16.01 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/1.042, allocations: 41.11 kB / 1.335 GB, free: 15.96 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/1.042, allocations: 0 / 1.335 GB, free: 15.96 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0006792/1.043, allocations: 301.8 kB / 1.335 GB, free: 15.77 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/1.043, allocations: 54.06 kB / 1.335 GB, free: 15.71 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/1.043, allocations: 271.8 kB / 1.335 GB, free: 15.55 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/1.043, allocations: 26.83 kB / 1.335 GB, free: 15.52 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/1.043, allocations: 216.6 kB / 1.335 GB, free: 15.33 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/1.043, allocations: 54.81 kB / 1.335 GB, free: 15.29 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/1.043, allocations: 50.72 kB / 1.336 GB, free: 15.25 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 8.521e-05/1.043, allocations: 335.4 kB / 1.336 GB, free: 14.93 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/1.043, allocations: 59.09 kB / 1.336 GB, free: 14.91 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/1.044, allocations: 143.6 kB / 1.336 GB, free: 14.78 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/1.044, allocations: 214.5 kB / 1.336 GB, free: 14.61 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.044, allocations: 9.031 kB / 1.336 GB, free: 14.61 MB / 1.061 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005716/1.044, allocations: 258.9 kB / 1.337 GB, free: 14.48 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/1.044, allocations: 6.656 kB / 1.337 GB, free: 14.48 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/1.045, allocations: 6.844 kB / 1.337 GB, free: 14.48 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/1.045, allocations: 35.98 kB / 1.337 GB, free: 14.46 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/1.045, allocations: 51.09 kB / 1.337 GB, free: 14.45 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009585/1.046, allocations: 1.417 MB / 1.338 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/1.046, allocations: 28.8 kB / 1.338 GB, free: 13.02 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/1.046, allocations: 12.88 kB / 1.338 GB, free: 13.02 MB / 1.061 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.0001715/1.046, allocations: 164.8 kB / 1.338 GB, free: 12.88 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/1.046, allocations: 24.23 kB / 1.338 GB, free: 12.86 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.836e-05/1.046, allocations: 31.59 kB / 1.338 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/1.046, allocations: 2.188 kB / 1.338 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/1.046, allocations: 0 / 1.338 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/1.046, allocations: 2.766 kB / 1.338 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008079/1.047, allocations: 0.7036 MB / 1.339 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/1.047, allocations: 1.375 kB / 1.339 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-05/1.047, allocations: 28.19 kB / 1.339 GB, free: 12.28 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.698e-05/1.047, allocations: 25.5 kB / 1.339 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/1.047, allocations: 7.5 kB / 1.339 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006829/1.048, allocations: 1.422 MB / 1.34 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/1.048, allocations: 6.906 kB / 1.34 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/1.048, allocations: 310.2 kB / 1.341 GB, free: 10.59 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.623e-05/1.048, allocations: 118.6 kB / 1.341 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/1.048, allocations: 3.594 kB / 1.341 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/1.049, allocations: 16.73 kB / 1.341 GB, free: 10.46 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.178e-05/1.049, allocations: 17 kB / 1.341 GB, free: 10.46 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/1.049, allocations: 5.594 kB / 1.341 GB, free: 10.46 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001805/1.049, allocations: 194.7 kB / 1.341 GB, free: 10.35 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.049, allocations: 4 kB / 1.341 GB, free: 10.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004444/1.049, allocations: 76.34 kB / 1.341 GB, free: 10.33 MB / 1.061 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.000514/1.05, allocations: 0.851 MB / 1.342 GB, free: 9.543 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005101/1.05, allocations: 272.6 kB / 1.342 GB, free: 9.375 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/1.05, allocations: 3.938 kB / 1.342 GB, free: 9.371 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001949/1.051, allocations: 174.2 kB / 1.342 GB, free: 9.242 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/1.051, allocations: 58.88 kB / 1.342 GB, free: 9.223 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/1.054, allocations: 2.725 MB / 1.345 GB, free: 7.215 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/1.054, allocations: 0.7941 MB / 1.346 GB, free: 6.504 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001546/1.054, allocations: 41.7 kB / 1.346 GB, free: 6.5 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/1.054, allocations: 82.81 kB / 1.346 GB, free: 6.438 MB / 1.061 GB Notification: Performance of SimCode: time 3.71e-07/1.054, allocations: 0 / 1.346 GB, free: 6.438 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/1.081, allocations: 5.461 MB / 1.351 GB, free: 5.738 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/11.39, allocations: 21.86 kB / 1.351 GB, free: 5.723 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.65177653101273]