Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_11_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.00508/0.00508, allocations: 103.7 kB / 15.74 MB, free: 6.445 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.001452/0.001452, allocations: 196.5 kB / 16.67 MB, free: 6.352 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.25/1.25, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.494/2.494, allocations: 469.8 MB / 0.7425 GB, free: 7.242 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 67.89 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2679, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005012/0.273, allocations: 3.838 MB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002379/0.2754, allocations: 1.729 MB / 1.226 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.2755, allocations: 4 kB / 1.226 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.2767, allocations: 498 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004011/0.2771, allocations: 222.9 kB / 1.226 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.2776, allocations: 215.5 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.2781, allocations: 478.4 kB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005004/0.2786, allocations: 357.1 kB / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.2788, allocations: 199.4 kB / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.2792, allocations: 219.1 kB / 1.228 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.66e-05/0.2792, allocations: 28 kB / 1.228 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003892/0.2796, allocations: 239.5 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.2797, allocations: 123.7 kB / 1.228 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.2799, allocations: 179.1 kB / 1.228 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005822/0.2805, allocations: 0.4982 MB / 1.229 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.2805, allocations: 0 / 1.229 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2805, allocations: 3.938 kB / 1.229 GB, free: 5.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.2805, allocations: 4 kB / 1.229 GB, free: 5.496 MB / 0.9825 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.0009965/0.2815, allocations: 0.6349 MB / 1.229 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2816, allocations: 8.031 kB / 1.229 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.549e-05/0.2817, allocations: 74.7 kB / 1.229 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008252/0.2825, allocations: 136.6 kB / 1.23 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.2828, allocations: 304.2 kB / 1.23 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.2829, allocations: 21.03 kB / 1.23 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.2829, allocations: 24.38 kB / 1.23 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006373/0.2836, allocations: 467.7 kB / 1.23 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2836, allocations: 7.875 kB / 1.23 GB, free: 3.703 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.2836, allocations: 12 kB / 1.23 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.491e-05/0.2837, allocations: 28.55 kB / 1.23 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004561/0.2841, allocations: 325.9 kB / 1.231 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.2862, allocations: 2.181 MB / 1.233 GB, free: 0.9531 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003569/0.2865, allocations: 255.8 kB / 1.233 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.2868, allocations: 104.8 kB / 1.233 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.2868, allocations: 4 kB / 1.233 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.2868, allocations: 34.56 kB / 1.233 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.233e-06/0.2868, allocations: 0 / 1.233 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0005468/0.2874, allocations: 311.1 kB / 1.233 GB, free: 200 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.2874, allocations: 51.41 kB / 1.234 GB, free: 136 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.2877, allocations: 266.6 kB / 1.234 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.2877, allocations: 25.7 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.2879, allocations: 216.3 kB / 1.234 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.2879, allocations: 47.59 kB / 1.234 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.487e-05/0.288, allocations: 49.94 kB / 1.234 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.2881, allocations: 330.8 kB / 1.234 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.486e-05/0.2882, allocations: 60.42 kB / 1.234 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.2884, allocations: 156.6 kB / 1.235 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.2886, allocations: 218.2 kB / 1.235 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2886, allocations: 4 kB / 1.235 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003877/0.289, allocations: 266 kB / 1.235 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.2891, allocations: 4 kB / 1.235 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.2891, allocations: 4 kB / 1.235 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/0.2892, allocations: 33.22 kB / 1.235 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.2894, allocations: 51.91 kB / 1.235 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.2904, allocations: 1.422 MB / 1.237 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.2906, allocations: 31.73 kB / 1.237 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.2906, allocations: 12.06 kB / 1.237 GB, free: 12.71 MB / 0.9981 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.0001498/0.2908, allocations: 169.7 kB / 1.237 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.631e-05/0.2908, allocations: 31.95 kB / 1.237 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.655e-05/0.2909, allocations: 25.83 kB / 1.237 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2909, allocations: 4 kB / 1.237 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2909, allocations: 0 / 1.237 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.2909, allocations: 3.938 kB / 1.237 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00084/0.2917, allocations: 0.7064 MB / 1.238 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2918, allocations: 0 / 1.238 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.25e-05/0.2918, allocations: 27.92 kB / 1.238 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.418e-05/0.2919, allocations: 28.78 kB / 1.238 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.2919, allocations: 4 kB / 1.238 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009534/0.2929, allocations: 1.414 MB / 1.239 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2929, allocations: 8.188 kB / 1.239 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003175/0.2932, allocations: 317.2 kB / 1.239 GB, free: 9.703 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.947e-05/0.2934, allocations: 120.9 kB / 1.239 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.2934, allocations: 4 kB / 1.239 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.2935, allocations: 8 kB / 1.239 GB, free: 9.555 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.772e-05/0.2936, allocations: 15.92 kB / 1.239 GB, free: 9.539 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.2936, allocations: 8 kB / 1.239 GB, free: 9.531 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001762/0.2938, allocations: 198 kB / 1.24 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2938, allocations: 0 / 1.24 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003433/0.2941, allocations: 71.89 kB / 1.24 GB, free: 9.27 MB / 0.9981 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.0005837/0.2947, allocations: 0.8546 MB / 1.241 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004081/0.2951, allocations: 277.4 kB / 1.241 GB, free: 8.082 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2951, allocations: 4 kB / 1.241 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.2954, allocations: 178.5 kB / 1.241 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.2958, allocations: 67.14 kB / 1.241 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/0.2986, allocations: 2.727 MB / 1.244 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.299, allocations: 0.7909 MB / 1.244 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001183/0.2991, allocations: 38.27 kB / 1.245 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2992, allocations: 83.41 kB / 1.245 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of SimCode: time 2.51e-07/0.2992, allocations: 0 / 1.245 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.886/3.185, allocations: 5.372 MB / 1.25 GB, free: 30.33 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.9/20.08, allocations: 10.12 kB / 1.25 GB, free: 30.33 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches