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.00183/0.00183, allocations: 108 kB / 15.61 MB, free: 148 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.001343/0.001343, allocations: 193.6 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.213/1.213, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.409/2.409, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 64.08 kB / 0.8992 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2322, allocations: 157.4 MB / 1.053 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004753/0.237, allocations: 3.846 MB / 1.057 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002392/0.2394, allocations: 1.73 MB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.2396, allocations: 11.94 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.2408, allocations: 0.4902 MB / 1.059 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000457/0.2413, allocations: 214.9 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.2418, allocations: 214.9 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004406/0.2422, allocations: 474.4 kB / 1.06 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005083/0.2427, allocations: 369.4 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.243, allocations: 187.4 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003247/0.2433, allocations: 219.2 kB / 1.06 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.871e-05/0.2433, allocations: 28 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003741/0.2437, allocations: 243.5 kB / 1.061 GB, free: 260 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.2438, allocations: 127.6 kB / 1.061 GB, free: 132 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.244, allocations: 179.2 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005009/0.2446, allocations: 498.5 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2446, allocations: 8 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2446, allocations: 3.938 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.2446, allocations: 0 / 1.061 GB, free: 15.45 MB / 0.8262 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.0008464/0.2454, allocations: 0.6289 MB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.2455, allocations: 8.625 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.534e-05/0.2455, allocations: 70.72 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008014/0.2464, allocations: 136.4 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.2467, allocations: 287.6 kB / 1.063 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.2467, allocations: 21.03 kB / 1.063 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.2468, allocations: 28.36 kB / 1.063 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005612/0.2473, allocations: 463.7 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2474, allocations: 3.938 kB / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.2474, allocations: 15.98 kB / 1.063 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-05/0.2474, allocations: 32.55 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004233/0.2479, allocations: 317.9 kB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.2497, allocations: 2.185 MB / 1.066 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.25, allocations: 255.7 kB / 1.066 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.2502, allocations: 104.8 kB / 1.066 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2503, allocations: 11.98 kB / 1.066 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.2503, allocations: 34.56 kB / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.2503, allocations: 0 / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0005174/0.2508, allocations: 299.5 kB / 1.066 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.2508, allocations: 51.41 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.2511, allocations: 270.5 kB / 1.067 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.2511, allocations: 33.7 kB / 1.067 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.2512, allocations: 211.7 kB / 1.067 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.2513, allocations: 51.34 kB / 1.067 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/0.2513, allocations: 45.86 kB / 1.067 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.469e-05/0.2514, allocations: 334.8 kB / 1.067 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.821e-05/0.2515, allocations: 56.5 kB / 1.067 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.2517, allocations: 152.7 kB / 1.067 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002311/0.2519, allocations: 221 kB / 1.068 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2519, allocations: 0 / 1.068 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003714/0.2523, allocations: 265.8 kB / 1.068 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2523, allocations: 4 kB / 1.068 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.2523, allocations: 4.375 kB / 1.068 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000142/0.2525, allocations: 32.84 kB / 1.068 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.2526, allocations: 43.92 kB / 1.068 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009675/0.2536, allocations: 1.426 MB / 1.069 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.2538, allocations: 27.69 kB / 1.069 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.2538, allocations: 12 kB / 1.069 GB, free: 6.699 MB / 0.8262 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.0001341/0.254, allocations: 173.7 kB / 1.069 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.99e-05/0.254, allocations: 27.72 kB / 1.07 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.061e-05/0.2541, allocations: 25.83 kB / 1.07 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2541, allocations: 4 kB / 1.07 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.2541, allocations: 0 / 1.07 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2541, allocations: 0 / 1.07 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007624/0.2548, allocations: 0.6986 MB / 1.07 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2549, allocations: 0 / 1.07 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.057e-05/0.2549, allocations: 28.11 kB / 1.07 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.692e-05/0.255, allocations: 32.97 kB / 1.07 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.255, allocations: 7.938 kB / 1.07 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009168/0.256, allocations: 1.411 MB / 1.072 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.256, allocations: 4.031 kB / 1.072 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.2563, allocations: 323.4 kB / 1.072 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.922e-05/0.2564, allocations: 112.8 kB / 1.072 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.2564, allocations: 8 kB / 1.072 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.2566, allocations: 15.92 kB / 1.072 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/0.2566, allocations: 19.92 kB / 1.072 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.2566, allocations: 4 kB / 1.072 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001573/0.2568, allocations: 194 kB / 1.072 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.482e-06/0.2568, allocations: 0 / 1.072 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003513/0.2571, allocations: 79.78 kB / 1.072 GB, free: 3.258 MB / 0.8262 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.0005328/0.2577, allocations: 0.8468 MB / 1.073 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004108/0.2581, allocations: 278.4 kB / 1.073 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2581, allocations: 0 / 1.073 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.2583, allocations: 183.3 kB / 1.074 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.2587, allocations: 64.72 kB / 1.074 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.2614, allocations: 2.71 MB / 1.076 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.2617, allocations: 0.8024 MB / 1.077 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001362/0.2619, allocations: 46.23 kB / 1.077 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.262, allocations: 83.41 kB / 1.077 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of SimCode: time 3.8e-07/0.262, allocations: 3.938 kB / 1.077 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.306/6.568, allocations: 5.28 MB / 1.082 GB, free: 8.816 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/21.77, allocations: 9.719 kB / 1.082 GB, free: 8.809 MB / 0.8419 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