Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",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.007698/0.007698, allocations: 101.6 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.00184/0.00184, allocations: 196.1 kB / 16.68 MB, free: 5.957 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.552/2.552, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 71.88 kB / 1.054 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9068/0.9091, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005823/0.915, allocations: 4.363 MB / 1.211 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00292/0.918, allocations: 1.854 MB / 1.213 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.9182, allocations: 15.94 kB / 1.213 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.9198, allocations: 0.5954 MB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0005398/0.9203, allocations: 266.6 kB / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000573/0.9209, allocations: 246.8 kB / 1.214 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005973/0.9215, allocations: 0.6113 MB / 1.215 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006574/0.9222, allocations: 473 kB / 1.215 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.9224, allocations: 247.2 kB / 1.216 GB, free: 4.863 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004206/0.9229, allocations: 271 kB / 1.216 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.201e-05/0.9229, allocations: 43.94 kB / 1.216 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004023/0.9233, allocations: 251.5 kB / 1.216 GB, free: 4.309 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.9235, allocations: 147.6 kB / 1.216 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.9237, allocations: 226.9 kB / 1.217 GB, free: 3.941 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006334/0.9244, allocations: 0.5997 MB / 1.217 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.9244, allocations: 0 / 1.217 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9244, allocations: 0 / 1.217 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.9244, allocations: 0 / 1.217 GB, free: 3.34 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001194/0.9256, allocations: 0.7291 MB / 1.218 GB, free: 2.562 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.9256, allocations: 8.031 kB / 1.218 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.21e-05/0.9257, allocations: 78.7 kB / 1.218 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009257/0.9267, allocations: 152.2 kB / 1.218 GB, free: 2.32 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.9271, allocations: 338.5 kB / 1.218 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.9271, allocations: 25.38 kB / 1.218 GB, free: 1.93 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.9272, allocations: 32.38 kB / 1.218 GB, free: 1.898 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007146/0.9279, allocations: 0.5355 MB / 1.219 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.9279, allocations: 0 / 1.219 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.066e-05/0.928, allocations: 12 kB / 1.219 GB, free: 1.312 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.657e-05/0.928, allocations: 32.64 kB / 1.219 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005455/0.9286, allocations: 394.2 kB / 1.219 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00241/0.931, allocations: 2.396 MB / 1.222 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005129/0.9315, allocations: 254.5 kB / 1.222 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.9317, allocations: 116.8 kB / 1.222 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.9317, allocations: 3.938 kB / 1.222 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.9317, allocations: 38.56 kB / 1.222 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 3.015e-06/0.9318, allocations: 3.984 kB / 1.222 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23): time 0.002098/0.9339, allocations: 1.128 MB / 1.223 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.9339, allocations: 59.41 kB / 1.223 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002999/0.9342, allocations: 304.4 kB / 1.224 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.9343, allocations: 33.64 kB / 1.224 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.9344, allocations: 231.6 kB / 1.224 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.079e-05/0.9345, allocations: 78.77 kB / 1.224 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.9346, allocations: 62.02 kB / 1.224 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.9347, allocations: 338.8 kB / 1.224 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.9349, allocations: 104.6 kB / 1.224 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.9351, allocations: 187.7 kB / 1.225 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003863/0.9355, allocations: 323.4 kB / 1.225 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.9355, allocations: 0 / 1.225 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000729/0.9362, allocations: 445.8 kB / 1.225 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.9363, allocations: 5.719 kB / 1.225 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.9363, allocations: 4 kB / 1.225 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003708/0.9366, allocations: 94.69 kB / 1.225 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/0.9369, allocations: 63.91 kB / 1.225 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003598/0.9405, allocations: 4.395 MB / 1.23 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.9408, allocations: 8 kB / 1.23 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.9408, allocations: 12 kB / 1.23 GB, free: 5.352 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002347/0.9411, allocations: 177.8 kB / 1.23 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.9412, allocations: 39.66 kB / 1.23 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.114e-05/0.9412, allocations: 38.31 kB / 1.23 GB, free: 5.094 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.9412, allocations: 96 / 1.23 GB, free: 5.094 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.9413, allocations: 7.984 kB / 1.23 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.9413, allocations: 3.984 kB / 1.23 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004449/0.9417, allocations: 397.4 kB / 1.23 GB, free: 4.645 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.9417, allocations: 3.938 kB / 1.23 GB, free: 4.641 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.9419, allocations: 35.92 kB / 1.23 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003079/0.9422, allocations: 94.5 kB / 1.231 GB, free: 4.504 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.9423, allocations: 8 kB / 1.231 GB, free: 4.496 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00332/0.9456, allocations: 4.383 MB / 1.235 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.9456, allocations: 3.938 kB / 1.235 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008145/0.9464, allocations: 0.554 MB / 1.235 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.9466, allocations: 120.8 kB / 1.236 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.9466, allocations: 11.92 kB / 1.236 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.9468, allocations: 12 kB / 1.236 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.9469, allocations: 20.03 kB / 1.236 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.9469, allocations: 8 kB / 1.236 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002188/0.9471, allocations: 215 kB / 1.236 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9471, allocations: 0 / 1.236 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000483/0.9476, allocations: 100 kB / 1.236 GB, free: 14.62 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001072/0.9487, allocations: 1.103 MB / 1.237 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008361/0.9495, allocations: 0.6018 MB / 1.238 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.9496, allocations: 0 / 1.238 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004726/0.95, allocations: 468.2 kB / 1.238 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004833/0.9505, allocations: 84.58 kB / 1.238 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004027/0.9546, allocations: 3.364 MB / 1.241 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.955, allocations: 0.8311 MB / 1.242 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001751/0.9552, allocations: 58.92 kB / 1.242 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.9553, allocations: 111.4 kB / 1.242 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of SimCode: time 5.31e-07/0.9553, allocations: 4 kB / 1.242 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.9888, allocations: 7.899 MB / 1.25 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.15/10.14, allocations: 10.09 kB / 1.25 GB, free: 15.96 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches