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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007861/0.007861, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001798/0.001798, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.2 MB / 0.6648 GB, free: 152 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 58.56 kB / 0.9504 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2882, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005919/0.2942, allocations: 3.832 MB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002983/0.2972, allocations: 1.722 MB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003045/0.2976, allocations: 11.94 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001592/0.2992, allocations: 0.4924 MB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006747/0.2999, allocations: 218.9 kB / 1.094 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.3005, allocations: 215.5 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006671/0.3012, allocations: 490 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006413/0.3018, allocations: 356 kB / 1.095 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002999/0.3022, allocations: 191.4 kB / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004732/0.3026, allocations: 215.2 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.29e-05/0.3027, allocations: 32 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004832/0.3032, allocations: 247.5 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.3034, allocations: 123.7 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.3036, allocations: 179.1 kB / 1.096 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007129/0.3043, allocations: 0.4954 MB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3043, allocations: 4 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3043, allocations: 0 / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.608e-05/0.3044, allocations: 0 / 1.096 GB, free: 9.195 MB / 0.8575 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.001152/0.3055, allocations: 0.6315 MB / 1.097 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3056, allocations: 8.031 kB / 1.097 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.238e-05/0.3057, allocations: 70.72 kB / 1.097 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009734/0.3067, allocations: 128.4 kB / 1.097 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.3071, allocations: 304.2 kB / 1.097 GB, free: 7.969 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.3071, allocations: 21.03 kB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.876e-05/0.3072, allocations: 28.36 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006394/0.3078, allocations: 463.7 kB / 1.098 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.3078, allocations: 3.938 kB / 1.098 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.981e-05/0.3079, allocations: 19.98 kB / 1.098 GB, free: 7.406 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.736e-05/0.3079, allocations: 28.55 kB / 1.098 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005007/0.3084, allocations: 321.9 kB / 1.098 GB, free: 7.066 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.3107, allocations: 2.177 MB / 1.1 GB, free: 4.676 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.3111, allocations: 262.3 kB / 1.1 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002389/0.3113, allocations: 104.8 kB / 1.1 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.3114, allocations: 0 / 1.1 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.3114, allocations: 38.5 kB / 1.1 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.3114, allocations: 0 / 1.1 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006003/0.312, allocations: 311.5 kB / 1.101 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.3121, allocations: 51.41 kB / 1.101 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.3123, allocations: 266.5 kB / 1.101 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.3124, allocations: 25.7 kB / 1.101 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.3125, allocations: 211.8 kB / 1.101 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.3125, allocations: 43.36 kB / 1.101 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.666e-05/0.3126, allocations: 57.84 kB / 1.101 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3127, allocations: 330.8 kB / 1.102 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.3128, allocations: 60.42 kB / 1.102 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.313, allocations: 144 kB / 1.102 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.3132, allocations: 218.9 kB / 1.102 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3133, allocations: 0 / 1.102 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004234/0.3137, allocations: 268.6 kB / 1.102 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.3137, allocations: 6.031 kB / 1.102 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.3137, allocations: 4 kB / 1.102 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.3139, allocations: 20.84 kB / 1.102 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.3141, allocations: 60.28 kB / 1.102 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.3152, allocations: 1.418 MB / 1.104 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.3154, allocations: 23.75 kB / 1.104 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.3154, allocations: 12 kB / 1.104 GB, free: 464 kB / 0.8575 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.0001708/0.3156, allocations: 177.6 kB / 1.104 GB, free: 276 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-05/0.3156, allocations: 23.72 kB / 1.104 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.3157, allocations: 25.83 kB / 1.104 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3157, allocations: 7.984 kB / 1.104 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3157, allocations: 4.062 kB / 1.104 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3157, allocations: 3.938 kB / 1.104 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009025/0.3166, allocations: 0.6949 MB / 1.105 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3166, allocations: 4.031 kB / 1.105 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.065e-05/0.3167, allocations: 28 kB / 1.105 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.297e-05/0.3168, allocations: 28.97 kB / 1.105 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.3168, allocations: 7.984 kB / 1.105 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009226/0.3178, allocations: 1.422 MB / 1.106 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/0.3178, allocations: 4.031 kB / 1.106 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.3181, allocations: 313.2 kB / 1.107 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.3183, allocations: 120.7 kB / 1.107 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.3183, allocations: 8 kB / 1.107 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.3185, allocations: 8 kB / 1.107 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/0.3185, allocations: 15.92 kB / 1.107 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.3185, allocations: 8 kB / 1.107 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001826/0.3187, allocations: 194 kB / 1.107 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3187, allocations: 3.938 kB / 1.107 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000407/0.3191, allocations: 71.84 kB / 1.107 GB, free: 13 MB / 0.8731 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.0005685/0.3197, allocations: 0.8546 MB / 1.108 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00047/0.3202, allocations: 273.2 kB / 1.108 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.3202, allocations: 4.75 kB / 1.108 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.3204, allocations: 182.5 kB / 1.108 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.3209, allocations: 66.22 kB / 1.108 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.3239, allocations: 2.709 MB / 1.111 GB, free: 8.656 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.3243, allocations: 0.7909 MB / 1.112 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001466/0.3244, allocations: 46.25 kB / 1.112 GB, free: 7.797 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.3245, allocations: 79.41 kB / 1.112 GB, free: 7.719 MB / 0.8731 GB Notification: Performance of SimCode: time 4.41e-07/0.3245, allocations: 4 kB / 1.112 GB, free: 7.715 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6462/0.9707, allocations: 5.38 MB / 1.117 GB, free: 2.461 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.8, allocations: 10.92 kB / 1.117 GB, free: 2.453 MB / 0.8731 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