Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_10_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.001219/0.001219, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001213/0.001213, allocations: 198.8 kB / 16.14 MB, free: 6.648 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.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.316/2.316, allocations: 437 MB / 0.71 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.91 kB / 0.8687 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4973/0.4985, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004618/0.5031, allocations: 3.883 MB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002195/0.5053, allocations: 1.737 MB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.5055, allocations: 4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.5065, allocations: 466.5 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003342/0.5069, allocations: 207.1 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.5072, allocations: 195.6 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004913/0.5077, allocations: 0.666 MB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.5081, allocations: 245.3 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.5082, allocations: 159.4 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.5085, allocations: 227.1 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.071e-05/0.5086, allocations: 24 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003777/0.5089, allocations: 303.4 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.5091, allocations: 115.7 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.5092, allocations: 171.1 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.5097, allocations: 0.4945 MB / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.5097, allocations: 0 / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.61e-07/0.5097, allocations: 4 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.5097, allocations: 0 / 1.025 GB, free: 9.941 MB / 0.7794 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.0007779/0.5105, allocations: 0.647 MB / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.5105, allocations: 8.031 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.171e-05/0.5106, allocations: 66.72 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008065/0.5114, allocations: 132.4 kB / 1.026 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.5117, allocations: 296.1 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.5117, allocations: 21.03 kB / 1.026 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.769e-05/0.5118, allocations: 28.38 kB / 1.027 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.5123, allocations: 467.7 kB / 1.027 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.5123, allocations: 4 kB / 1.027 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.5124, allocations: 16 kB / 1.027 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.966e-05/0.5124, allocations: 24.55 kB / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004259/0.5129, allocations: 325.9 kB / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.5146, allocations: 2.189 MB / 1.029 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.5149, allocations: 247.8 kB / 1.03 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.5152, allocations: 112.8 kB / 1.03 GB, free: 5.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.986e-06/0.5152, allocations: 0 / 1.03 GB, free: 5.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.5152, allocations: 34.56 kB / 1.03 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/0.5152, allocations: 0 / 1.03 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0004938/0.5157, allocations: 311.1 kB / 1.03 GB, free: 4.648 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.5158, allocations: 55.41 kB / 1.03 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.516, allocations: 262.6 kB / 1.03 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.516, allocations: 25.7 kB / 1.03 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.5161, allocations: 211.7 kB / 1.031 GB, free: 4.078 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.5162, allocations: 43.36 kB / 1.031 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.584e-05/0.5162, allocations: 53.84 kB / 1.031 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.493e-05/0.5163, allocations: 334.8 kB / 1.031 GB, free: 3.637 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.013e-05/0.5164, allocations: 64.52 kB / 1.031 GB, free: 3.574 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.5166, allocations: 137.6 kB / 1.031 GB, free: 3.402 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.5168, allocations: 224.4 kB / 1.031 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5168, allocations: 3.938 kB / 1.031 GB, free: 3.141 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003626/0.5172, allocations: 271.1 kB / 1.032 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.5172, allocations: 10.03 kB / 1.032 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.5172, allocations: 4 kB / 1.032 GB, free: 2.855 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.5173, allocations: 20.84 kB / 1.032 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.5175, allocations: 55.91 kB / 1.032 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008262/0.5183, allocations: 1.32 MB / 1.033 GB, free: 1.328 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.5185, allocations: 35.58 kB / 1.033 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.5185, allocations: 16.16 kB / 1.033 GB, free: 1.277 MB / 0.7794 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.0001279/0.5186, allocations: 169.7 kB / 1.033 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.5187, allocations: 27.66 kB / 1.033 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.125e-05/0.5187, allocations: 21.84 kB / 1.033 GB, free: 1.047 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.5187, allocations: 4 kB / 1.033 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5188, allocations: 3.984 kB / 1.033 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.5188, allocations: 0 / 1.033 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007441/0.5195, allocations: 0.6947 MB / 1.034 GB, free: 260 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.5195, allocations: 0 / 1.034 GB, free: 260 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.053e-05/0.5196, allocations: 23.98 kB / 1.034 GB, free: 236 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.038e-05/0.5197, allocations: 29.03 kB / 1.034 GB, free: 204 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.5197, allocations: 4 kB / 1.034 GB, free: 200 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007807/0.5205, allocations: 1.323 MB / 1.035 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5205, allocations: 7.922 kB / 1.035 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.5208, allocations: 314.5 kB / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.455e-05/0.5209, allocations: 112.8 kB / 1.036 GB, free: 14.26 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.5209, allocations: 11.98 kB / 1.036 GB, free: 14.25 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.5211, allocations: 12 kB / 1.036 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.517e-05/0.5211, allocations: 15.98 kB / 1.036 GB, free: 14.22 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.5211, allocations: 8 kB / 1.036 GB, free: 14.21 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001548/0.5213, allocations: 193.9 kB / 1.036 GB, free: 14.02 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5213, allocations: 0 / 1.036 GB, free: 14.02 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003299/0.5216, allocations: 75.84 kB / 1.036 GB, free: 13.95 MB / 0.795 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.000486/0.5221, allocations: 0.8527 MB / 1.037 GB, free: 13.05 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003556/0.5225, allocations: 266.4 kB / 1.037 GB, free: 12.78 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.5225, allocations: 4 kB / 1.037 GB, free: 12.77 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.5227, allocations: 175.7 kB / 1.037 GB, free: 12.59 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.5231, allocations: 66.56 kB / 1.037 GB, free: 12.53 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.5257, allocations: 2.83 MB / 1.04 GB, free: 9.504 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.526, allocations: 0.7986 MB / 1.041 GB, free: 8.68 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001378/0.5261, allocations: 46.25 kB / 1.041 GB, free: 8.633 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.705e-05/0.5262, allocations: 83.41 kB / 1.041 GB, free: 8.555 MB / 0.795 GB Notification: Performance of SimCode: time 1.833e-06/0.5262, allocations: 4 kB / 1.041 GB, free: 8.551 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.472/1.998, allocations: 5.066 MB / 1.046 GB, free: 3.625 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002595/1.999, allocations: 225.3 kB / 1.046 GB, free: 3.367 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.338/4.337, allocations: 0 / 1.046 GB, free: 3.367 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches