Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_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.005091/0.005091, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001201/0.001201, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.746/2.746, allocations: 469.4 MB / 0.7422 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 60.12 kB / 1.064 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3045, allocations: 159.1 MB / 1.22 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005884/0.3104, allocations: 3.847 MB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003013/0.3134, allocations: 1.725 MB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002735/0.3137, allocations: 4 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.3152, allocations: 0.4941 MB / 1.226 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0006166/0.3158, allocations: 222.9 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/0.3165, allocations: 214.1 kB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000628/0.3171, allocations: 470.5 kB / 1.227 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006191/0.3177, allocations: 377 kB / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003296/0.3181, allocations: 199.4 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004411/0.3185, allocations: 207.2 kB / 1.227 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.555e-05/0.3186, allocations: 28 kB / 1.227 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004953/0.3191, allocations: 247.4 kB / 1.228 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.3193, allocations: 123.7 kB / 1.228 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002117/0.3195, allocations: 167.2 kB / 1.228 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007396/0.3202, allocations: 0.4981 MB / 1.228 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3202, allocations: 4 kB / 1.228 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.456e-06/0.3202, allocations: 0 / 1.228 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.624e-05/0.3203, allocations: 3.938 kB / 1.228 GB, free: 5.914 MB / 0.9825 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.001163/0.3214, allocations: 0.6427 MB / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3215, allocations: 8.031 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.486e-05/0.3216, allocations: 66.72 kB / 1.229 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009459/0.3225, allocations: 140.6 kB / 1.229 GB, free: 5 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.323, allocations: 300.2 kB / 1.229 GB, free: 4.668 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.323, allocations: 25.02 kB / 1.229 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.489e-05/0.3231, allocations: 24.38 kB / 1.229 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006621/0.3237, allocations: 463.7 kB / 1.23 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3238, allocations: 0 / 1.23 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.3238, allocations: 19.98 kB / 1.23 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.74e-05/0.3239, allocations: 24.55 kB / 1.23 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.3244, allocations: 329.9 kB / 1.23 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.3267, allocations: 2.178 MB / 1.232 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000385/0.3271, allocations: 255.8 kB / 1.233 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003105/0.3274, allocations: 112.8 kB / 1.233 GB, free: 0.9844 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.938e-06/0.3275, allocations: 3.938 kB / 1.233 GB, free: 0.9805 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.3275, allocations: 42.66 kB / 1.233 GB, free: 0.9297 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.3275, allocations: 3.938 kB / 1.233 GB, free: 0.9258 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0006114/0.3281, allocations: 295.3 kB / 1.233 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.961e-05/0.3282, allocations: 55.41 kB / 1.233 GB, free: 0.543 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.3285, allocations: 270.5 kB / 1.233 GB, free: 280 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.3285, allocations: 29.7 kB / 1.233 GB, free: 244 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.3287, allocations: 212.3 kB / 1.234 GB, free: 28 kB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.081e-05/0.3287, allocations: 47.58 kB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.452e-05/0.3288, allocations: 45.95 kB / 1.234 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.329, allocations: 338.8 kB / 1.234 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.901e-05/0.3291, allocations: 56.44 kB / 1.234 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.3292, allocations: 144 kB / 1.234 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.3295, allocations: 223.2 kB / 1.234 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3295, allocations: 0 / 1.234 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004331/0.3299, allocations: 272.7 kB / 1.235 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.33, allocations: 4 kB / 1.235 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.33, allocations: 4 kB / 1.235 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.3302, allocations: 29.22 kB / 1.235 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.3303, allocations: 47.92 kB / 1.235 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.3316, allocations: 1.422 MB / 1.236 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.3318, allocations: 31.73 kB / 1.236 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.3319, allocations: 12 kB / 1.236 GB, free: 13.13 MB / 0.9981 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.00021/0.3321, allocations: 169.7 kB / 1.236 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.996e-05/0.3321, allocations: 23.86 kB / 1.236 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.747e-05/0.3322, allocations: 33.92 kB / 1.236 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.3322, allocations: 0 / 1.236 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3322, allocations: 4 kB / 1.236 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3322, allocations: 0 / 1.236 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.3333, allocations: 0.7025 MB / 1.237 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3333, allocations: 0 / 1.237 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.858e-05/0.3334, allocations: 27.98 kB / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.306e-05/0.3335, allocations: 24.78 kB / 1.237 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.3335, allocations: 4 kB / 1.237 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.3348, allocations: 1.422 MB / 1.239 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.3348, allocations: 7.969 kB / 1.239 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/0.3352, allocations: 321.4 kB / 1.239 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.3354, allocations: 120.8 kB / 1.239 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.3354, allocations: 8 kB / 1.239 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.3356, allocations: 7.984 kB / 1.239 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/0.3356, allocations: 19.92 kB / 1.239 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.3356, allocations: 4 kB / 1.239 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001915/0.3358, allocations: 190 kB / 1.239 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.02e-07/0.3358, allocations: 8 kB / 1.239 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004473/0.3363, allocations: 75.89 kB / 1.239 GB, free: 9.68 MB / 0.9981 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.0008616/0.3372, allocations: 0.8468 MB / 1.24 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005236/0.3377, allocations: 275 kB / 1.24 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.3377, allocations: 4.062 kB / 1.24 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002499/0.338, allocations: 178.6 kB / 1.241 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.3385, allocations: 72 kB / 1.241 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.3419, allocations: 2.713 MB / 1.243 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005067/0.3425, allocations: 0.7909 MB / 1.244 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001638/0.3427, allocations: 50.25 kB / 1.244 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.3428, allocations: 83.59 kB / 1.244 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of SimCode: time 5.41e-07/0.3428, allocations: 0 / 1.244 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5691/0.9119, allocations: 5.382 MB / 1.249 GB, free: 30.74 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.376/10.29, allocations: 9.078 kB / 1.249 GB, free: 30.74 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches