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.001585/0.001585, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002084/0.002084, allocations: 195.1 kB / 16.53 MB, free: 6.664 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.526/2.526, allocations: 461.9 MB / 0.7347 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 69.64 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2473, allocations: 157.4 MB / 1.053 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004205/0.2515, allocations: 3.069 MB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.2533, allocations: 1.336 MB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2535, allocations: 4 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008984/0.2544, allocations: 338.7 kB / 1.058 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003003/0.2547, allocations: 139.3 kB / 1.058 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.255, allocations: 139.6 kB / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.2553, allocations: 310.9 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.2556, allocations: 236.5 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.2558, allocations: 123.6 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.256, allocations: 143.4 kB / 1.059 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.2561, allocations: 20 kB / 1.059 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002593/0.2563, allocations: 167.6 kB / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8e-05/0.2564, allocations: 83.78 kB / 1.059 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.2565, allocations: 99.55 kB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003752/0.2569, allocations: 330.9 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2569, allocations: 8 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2569, allocations: 4 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.257, allocations: 0 / 1.059 GB, free: 1.738 MB / 0.8106 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.0007462/0.2577, allocations: 0.5069 MB / 1.06 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2578, allocations: 8.625 kB / 1.06 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.607e-05/0.2578, allocations: 54.73 kB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005654/0.2584, allocations: 88.56 kB / 1.06 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.2587, allocations: 236 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.2587, allocations: 20.67 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.934e-05/0.2587, allocations: 16.38 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003867/0.2591, allocations: 299.4 kB / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2591, allocations: 0 / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.2592, allocations: 15.94 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.291e-05/0.2592, allocations: 12.38 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002761/0.2595, allocations: 204.9 kB / 1.061 GB, free: 180 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.2607, allocations: 1.456 MB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.261, allocations: 175.7 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.406e-05/0.261, allocations: 32.84 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-06/0.2611, allocations: 0 / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.2611, allocations: 42.5 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/0.2611, allocations: 4 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004284/0.2615, allocations: 223.3 kB / 1.063 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.2616, allocations: 55.41 kB / 1.063 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.2617, allocations: 198.8 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.2618, allocations: 29.69 kB / 1.063 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.959e-05/0.2618, allocations: 159.6 kB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.2619, allocations: 31.8 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.126e-05/0.2619, allocations: 37.62 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.262, allocations: 326.8 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.1e-05/0.2621, allocations: 43.91 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.225e-05/0.2622, allocations: 93.67 kB / 1.063 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.2623, allocations: 148.4 kB / 1.064 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2623, allocations: 0 / 1.064 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002741/0.2626, allocations: 194.1 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.2626, allocations: 4.281 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2627, allocations: 8 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001355/0.2628, allocations: 24.78 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.2629, allocations: 31.98 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008792/0.2638, allocations: 1.418 MB / 1.065 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.2639, allocations: 11.94 kB / 1.065 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.2639, allocations: 15.94 kB / 1.065 GB, free: 10.95 MB / 0.8262 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.0001068/0.264, allocations: 157.7 kB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.746e-05/0.2641, allocations: 15.81 kB / 1.065 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.2641, allocations: 17.41 kB / 1.065 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2641, allocations: 0 / 1.065 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2641, allocations: 3.984 kB / 1.065 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2641, allocations: 0 / 1.065 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/0.2646, allocations: 443.5 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2646, allocations: 4 kB / 1.066 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.572e-05/0.2646, allocations: 7.984 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.48e-05/0.2647, allocations: 24.84 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.2647, allocations: 0 / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007864/0.2655, allocations: 1.418 MB / 1.067 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2655, allocations: 4.031 kB / 1.067 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001927/0.2657, allocations: 224.2 kB / 1.068 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.636e-05/0.2658, allocations: 85.02 kB / 1.068 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.2658, allocations: 7.984 kB / 1.068 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.955e-05/0.2659, allocations: 7.938 kB / 1.068 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.266, allocations: 8 kB / 1.068 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.266, allocations: 0 / 1.068 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000109/0.2661, allocations: 156.1 kB / 1.068 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2661, allocations: 0 / 1.068 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002949/0.2664, allocations: 55.75 kB / 1.068 GB, free: 8.094 MB / 0.8262 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.000396/0.2668, allocations: 0.7405 MB / 1.069 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003069/0.2671, allocations: 218.5 kB / 1.069 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2671, allocations: 0 / 1.069 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.2672, allocations: 146.6 kB / 1.069 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.2676, allocations: 37.81 kB / 1.069 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.2694, allocations: 2.034 MB / 1.071 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.2697, allocations: 0.7513 MB / 1.072 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.924e-05/0.2697, allocations: 25.53 kB / 1.072 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.463e-05/0.2698, allocations: 51.42 kB / 1.072 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2698, allocations: 0 / 1.072 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7828/1.053, allocations: 3.644 MB / 1.075 GB, free: 368 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.17/24.22, allocations: 14.23 kB / 1.075 GB, free: 356 kB / 0.8262 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