Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_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.00135/0.00135, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001237/0.001237, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.383/1.383, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 67.88 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5783/0.5797, allocations: 140.4 MB / 0.949 GB, free: 9.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.00415/0.5839, allocations: 3.87 MB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.586, allocations: 1.739 MB / 0.9545 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.5861, allocations: 5.688 kB / 0.9545 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.5873, allocations: 466.5 kB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.5876, allocations: 212.7 kB / 0.9552 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003607/0.588, allocations: 192.6 kB / 0.9554 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004716/0.5885, allocations: 0.6652 MB / 0.956 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.5888, allocations: 242.8 kB / 0.9562 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.5889, allocations: 162.9 kB / 0.9564 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.5892, allocations: 223.5 kB / 0.9566 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.766e-05/0.5893, allocations: 20.97 kB / 0.9566 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004149/0.5897, allocations: 307.2 kB / 0.9569 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.5898, allocations: 109.6 kB / 0.957 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.59, allocations: 167.6 kB / 0.9572 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004802/0.5905, allocations: 0.5024 MB / 0.9577 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5905, allocations: 1.188 kB / 0.9577 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.91e-07/0.5905, allocations: 4 kB / 0.9577 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.5905, allocations: 0 / 0.9577 GB, free: 2.691 MB / 0.7169 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.0007993/0.5913, allocations: 0.6359 MB / 0.9583 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.5914, allocations: 12.19 kB / 0.9583 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.932e-05/0.5914, allocations: 67.09 kB / 0.9584 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008426/0.5923, allocations: 142.6 kB / 0.9585 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.5925, allocations: 283.6 kB / 0.9588 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.5926, allocations: 21.41 kB / 0.9588 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.5926, allocations: 26.25 kB / 0.9588 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/0.5932, allocations: 466.3 kB / 0.9593 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.5932, allocations: 0 / 0.9593 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.5932, allocations: 12.22 kB / 0.9593 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.47e-05/0.5933, allocations: 30.42 kB / 0.9593 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004501/0.5938, allocations: 330 kB / 0.9596 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.5956, allocations: 2.189 MB / 0.9618 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000371/0.596, allocations: 250.7 kB / 0.962 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.5962, allocations: 112.9 kB / 0.9621 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.5962, allocations: 1.219 kB / 0.9621 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.5963, allocations: 37.12 kB / 0.9621 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.5963, allocations: 0 / 0.9621 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005916/0.5969, allocations: 305.1 kB / 0.9624 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.5969, allocations: 52.84 kB / 0.9625 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.5972, allocations: 266.9 kB / 0.9627 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.5972, allocations: 26.8 kB / 0.9628 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.5974, allocations: 210.1 kB / 0.963 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.806e-05/0.5974, allocations: 53.17 kB / 0.963 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-05/0.5975, allocations: 52.02 kB / 0.9631 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.5976, allocations: 336 kB / 0.9634 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.963e-05/0.5977, allocations: 54.59 kB / 0.9634 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.5979, allocations: 145.5 kB / 0.9636 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.5982, allocations: 221 kB / 0.9638 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5982, allocations: 4.969 kB / 0.9638 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004192/0.5986, allocations: 262.3 kB / 0.964 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.5986, allocations: 9.312 kB / 0.9641 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.5986, allocations: 3.406 kB / 0.9641 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001535/0.5988, allocations: 31.22 kB / 0.9641 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.599, allocations: 50.05 kB / 0.9641 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009712/0.6, allocations: 1.321 MB / 0.9654 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.6001, allocations: 27.53 kB / 0.9655 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.6002, allocations: 16.98 kB / 0.9655 GB, free: 11.77 MB / 0.7325 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.0001538/0.6003, allocations: 166.4 kB / 0.9656 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.6004, allocations: 27.81 kB / 0.9657 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.66e-05/0.6004, allocations: 28.36 kB / 0.9657 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.6004, allocations: 5.312 kB / 0.9657 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.6004, allocations: 1.094 kB / 0.9657 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.6005, allocations: 0 / 0.9657 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008504/0.6013, allocations: 0.7018 MB / 0.9664 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.6013, allocations: 2.469 kB / 0.9664 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.829e-05/0.6014, allocations: 22.36 kB / 0.9664 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.846e-05/0.6015, allocations: 24.19 kB / 0.9664 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.6015, allocations: 6.906 kB / 0.9664 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009118/0.6025, allocations: 1.32 MB / 0.9677 GB, free: 9.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.6025, allocations: 9.094 kB / 0.9677 GB, free: 9.562 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003318/0.6028, allocations: 313.9 kB / 0.968 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.669e-05/0.6029, allocations: 113.4 kB / 0.9681 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.603, allocations: 7.156 kB / 0.9681 GB, free: 9.176 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.6031, allocations: 14.33 kB / 0.9682 GB, free: 9.168 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.6032, allocations: 14.36 kB / 0.9682 GB, free: 9.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.6032, allocations: 4.969 kB / 0.9682 GB, free: 9.16 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001799/0.6034, allocations: 191.2 kB / 0.9684 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6034, allocations: 96 / 0.9684 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003837/0.6038, allocations: 84.31 kB / 0.9684 GB, free: 9.008 MB / 0.7325 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.0005717/0.6044, allocations: 0.8517 MB / 0.9693 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004095/0.6048, allocations: 266.2 kB / 0.9695 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6048, allocations: 4.688 kB / 0.9695 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.605, allocations: 181.3 kB / 0.9697 GB, free: 7.879 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.6055, allocations: 55.97 kB / 0.9698 GB, free: 7.852 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.6086, allocations: 2.844 MB / 0.9725 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.609, allocations: 0.7997 MB / 0.9733 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001522/0.6091, allocations: 41.27 kB / 0.9733 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.6093, allocations: 83.62 kB / 0.9734 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.6093, allocations: 0 / 0.9734 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.6259, allocations: 5.062 MB / 0.9784 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.6261, allocations: 216.1 kB / 0.9786 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.431, allocations: 4.938 kB / 0.9786 GB, free: 1.988 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches