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.008878/0.008878, allocations: 101.9 kB / 15.73 MB, free: 6 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.001674/0.001674, allocations: 194.8 kB / 16.67 MB, free: 5.926 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.186/2.186, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 67.89 kB / 0.9504 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.814/0.8154, allocations: 140.4 MB / 1.087 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005155/0.8206, allocations: 3.831 MB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002772/0.8234, allocations: 1.729 MB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.8236, allocations: 14.12 kB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001425/0.825, allocations: 491.4 kB / 1.093 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005537/0.8256, allocations: 217.4 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.8261, allocations: 208.8 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005767/0.8267, allocations: 483.7 kB / 1.094 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005797/0.8273, allocations: 370.7 kB / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.8276, allocations: 197.4 kB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004508/0.828, allocations: 216.5 kB / 1.095 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.807e-05/0.8281, allocations: 28.22 kB / 1.095 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005416/0.8287, allocations: 244.7 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.8288, allocations: 131.6 kB / 1.095 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.829, allocations: 171.2 kB / 1.096 GB, free: 444 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007217/0.8298, allocations: 0.5032 MB / 1.096 GB, free: 260 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.8298, allocations: 1.062 kB / 1.096 GB, free: 260 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.964e-06/0.8298, allocations: 0 / 1.096 GB, free: 260 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.8298, allocations: 0 / 1.096 GB, free: 260 kB / 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.001123/0.8309, allocations: 0.6248 MB / 1.097 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.831, allocations: 9.625 kB / 1.097 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.996e-05/0.8311, allocations: 66.89 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009504/0.832, allocations: 130 kB / 1.097 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.8325, allocations: 304.6 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.8325, allocations: 20.25 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/0.8326, allocations: 30.08 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007921/0.8334, allocations: 465.5 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.8334, allocations: 5.312 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.8334, allocations: 11.47 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.924e-05/0.8335, allocations: 31.27 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005458/0.834, allocations: 326 kB / 1.098 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.8364, allocations: 2.174 MB / 1.1 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.8368, allocations: 259.9 kB / 1.1 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.8371, allocations: 105.4 kB / 1.1 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.8371, allocations: 2.438 kB / 1.1 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.133e-05/0.8372, allocations: 31.88 kB / 1.1 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.713e-06/0.8372, allocations: 4 kB / 1.1 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0006269/0.8378, allocations: 303.4 kB / 1.101 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.8379, allocations: 54.22 kB / 1.101 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/0.8382, allocations: 271.2 kB / 1.101 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.8382, allocations: 27.39 kB / 1.101 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.8384, allocations: 204.2 kB / 1.101 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.015e-05/0.8384, allocations: 54.45 kB / 1.101 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-05/0.8385, allocations: 51.05 kB / 1.101 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.8386, allocations: 334.7 kB / 1.102 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.8387, allocations: 58.64 kB / 1.102 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.8389, allocations: 148.4 kB / 1.102 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.8392, allocations: 222.2 kB / 1.102 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.8392, allocations: 1.344 kB / 1.102 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000444/0.8396, allocations: 266.9 kB / 1.102 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.8397, allocations: 10.03 kB / 1.102 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.8397, allocations: 2.969 kB / 1.102 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001648/0.8399, allocations: 28.55 kB / 1.102 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.8401, allocations: 51.97 kB / 1.102 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.8412, allocations: 1.416 MB / 1.104 GB, free: 9.902 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.8414, allocations: 31.88 kB / 1.104 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.8414, allocations: 17.44 kB / 1.104 GB, free: 9.871 MB / 0.8731 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.0001665/0.8416, allocations: 164.3 kB / 1.104 GB, free: 9.73 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.321e-05/0.8417, allocations: 28.67 kB / 1.104 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.79e-05/0.8417, allocations: 26.7 kB / 1.104 GB, free: 9.695 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.8417, allocations: 11.41 kB / 1.104 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.8417, allocations: 0 / 1.104 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.8417, allocations: 0.6562 kB / 1.104 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.8428, allocations: 0.6999 MB / 1.105 GB, free: 9.145 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.8428, allocations: 2.406 kB / 1.105 GB, free: 9.145 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.8429, allocations: 28.2 kB / 1.105 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.039e-05/0.843, allocations: 25.39 kB / 1.105 GB, free: 9.125 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.8431, allocations: 6.922 kB / 1.105 GB, free: 9.121 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.8442, allocations: 1.415 MB / 1.106 GB, free: 7.707 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.8442, allocations: 2.266 kB / 1.106 GB, free: 7.707 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003683/0.8446, allocations: 319.2 kB / 1.107 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.8447, allocations: 114.5 kB / 1.107 GB, free: 7.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.8447, allocations: 3.203 kB / 1.107 GB, free: 7.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.8449, allocations: 12.19 kB / 1.107 GB, free: 7.336 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.412e-05/0.8449, allocations: 18.16 kB / 1.107 GB, free: 7.328 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.845, allocations: 10.02 kB / 1.107 GB, free: 7.324 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001879/0.8451, allocations: 190.7 kB / 1.107 GB, free: 7.215 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8452, allocations: 0 / 1.107 GB, free: 7.215 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004054/0.8456, allocations: 76.31 kB / 1.107 GB, free: 7.199 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.0006453/0.8462, allocations: 0.8508 MB / 1.108 GB, free: 6.414 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004615/0.8467, allocations: 280.5 kB / 1.108 GB, free: 6.242 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.8467, allocations: 5.562 kB / 1.108 GB, free: 6.238 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.8469, allocations: 181.1 kB / 1.108 GB, free: 6.105 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.8474, allocations: 61.25 kB / 1.108 GB, free: 6.082 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/0.8512, allocations: 2.701 MB / 1.111 GB, free: 4.086 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.8518, allocations: 0.7896 MB / 1.112 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002362/0.8521, allocations: 41.38 kB / 1.112 GB, free: 3.375 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.8523, allocations: 87.91 kB / 1.112 GB, free: 3.312 MB / 0.8731 GB Notification: Performance of SimCode: time 7.51e-07/0.8523, allocations: 0 / 1.112 GB, free: 3.312 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.8804, allocations: 5.447 MB / 1.117 GB, free: 2.645 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.742/10.62, allocations: 8.688 kB / 1.117 GB, free: 2.641 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