Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",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.006435/0.006435, allocations: 105.8 kB / 15.74 MB, free: 5.992 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.001511/0.001511, allocations: 195.8 kB / 16.67 MB, free: 5.914 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.254/2.254, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 67.89 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8212/0.8226, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003912/0.8265, allocations: 3.075 MB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001919/0.8285, allocations: 1.331 MB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.8286, allocations: 5.031 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009527/0.8295, allocations: 331.6 kB / 1.092 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.8299, allocations: 148.1 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.8303, allocations: 139.2 kB / 1.092 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003693/0.8306, allocations: 305.1 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000428/0.8311, allocations: 235.4 kB / 1.093 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.8312, allocations: 126.2 kB / 1.093 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002932/0.8315, allocations: 134.6 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.8316, allocations: 18.5 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003149/0.8319, allocations: 173.3 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.832, allocations: 78.98 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.8322, allocations: 117.2 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.8326, allocations: 334.3 kB / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.8327, allocations: 0 / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8327, allocations: 0 / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.8327, allocations: 0 / 1.094 GB, free: 1.309 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007666/0.8334, allocations: 0.5075 MB / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.8335, allocations: 13.38 kB / 1.094 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.505e-05/0.8336, allocations: 56 kB / 1.094 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005823/0.8342, allocations: 82.56 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.8345, allocations: 250.2 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.8345, allocations: 13.47 kB / 1.095 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.8345, allocations: 16.19 kB / 1.095 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004436/0.835, allocations: 306.2 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.835, allocations: 0.9062 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.835, allocations: 10.48 kB / 1.095 GB, free: 368 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.064e-05/0.8351, allocations: 19.66 kB / 1.095 GB, free: 364 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003243/0.8354, allocations: 197.6 kB / 1.095 GB, free: 296 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.8369, allocations: 1.462 MB / 1.097 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.8372, allocations: 176.5 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.526e-05/0.8373, allocations: 35.47 kB / 1.097 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.8373, allocations: 0.9062 kB / 1.097 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.8373, allocations: 36.48 kB / 1.097 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.8373, allocations: 4.531 kB / 1.097 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7): time 0.0004955/0.8378, allocations: 226.5 kB / 1.097 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.8379, allocations: 53.17 kB / 1.097 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.8381, allocations: 195.3 kB / 1.097 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.8381, allocations: 25.7 kB / 1.097 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.8382, allocations: 161.4 kB / 1.098 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/0.8383, allocations: 33.83 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.611e-05/0.8383, allocations: 36.7 kB / 1.098 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.8385, allocations: 325.8 kB / 1.098 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.667e-05/0.8385, allocations: 36.59 kB / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.8387, allocations: 96.45 kB / 1.098 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.8389, allocations: 152.4 kB / 1.098 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.8389, allocations: 1.125 kB / 1.098 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003156/0.8392, allocations: 187.1 kB / 1.098 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.8392, allocations: 9.469 kB / 1.098 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.8392, allocations: 6.797 kB / 1.098 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001453/0.8394, allocations: 22.72 kB / 1.098 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.8395, allocations: 28.53 kB / 1.098 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.8406, allocations: 1.423 MB / 1.1 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.8407, allocations: 17.28 kB / 1.1 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.8407, allocations: 15.44 kB / 1.1 GB, free: 12.04 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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.0001264/0.8409, allocations: 150.4 kB / 1.1 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.8409, allocations: 19.31 kB / 1.1 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.855e-05/0.841, allocations: 19.19 kB / 1.1 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.841, allocations: 1.469 kB / 1.1 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.841, allocations: 1.516 kB / 1.1 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.841, allocations: 0 / 1.1 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005256/0.8415, allocations: 445.6 kB / 1.1 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.8415, allocations: 0 / 1.1 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.8416, allocations: 7.234 kB / 1.1 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.768e-05/0.8417, allocations: 27.42 kB / 1.1 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.8417, allocations: 5.031 kB / 1.1 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009532/0.8426, allocations: 1.408 MB / 1.102 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.8426, allocations: 1.797 kB / 1.102 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000237/0.8429, allocations: 218.3 kB / 1.102 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.16e-05/0.843, allocations: 106.9 kB / 1.102 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.843, allocations: 1.344 kB / 1.102 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.8431, allocations: 4.125 kB / 1.102 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.859e-05/0.8431, allocations: 4.078 kB / 1.102 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.8432, allocations: 2.656 kB / 1.102 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001442/0.8433, allocations: 147.2 kB / 1.102 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8433, allocations: 0 / 1.102 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003528/0.8437, allocations: 52.31 kB / 1.102 GB, free: 9.676 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0004861/0.8442, allocations: 0.7445 MB / 1.103 GB, free: 8.973 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003608/0.8445, allocations: 214.4 kB / 1.103 GB, free: 8.824 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.8445, allocations: 4.062 kB / 1.103 GB, free: 8.82 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.8447, allocations: 145.5 kB / 1.103 GB, free: 8.699 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.8451, allocations: 37 kB / 1.103 GB, free: 8.684 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.8473, allocations: 2.055 MB / 1.105 GB, free: 7.039 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.8477, allocations: 0.7508 MB / 1.106 GB, free: 6.332 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001034/0.8478, allocations: 24.58 kB / 1.106 GB, free: 6.324 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.8479, allocations: 52.42 kB / 1.106 GB, free: 6.285 MB / 0.8731 GB Notification: Performance of SimCode: time 4.91e-07/0.8479, allocations: 3.938 kB / 1.106 GB, free: 6.281 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.8751, allocations: 3.752 MB / 1.11 GB, free: 5.719 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.549/10.42, allocations: 5.188 kB / 1.11 GB, free: 5.719 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches