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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.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.001183/0.001183, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00115/0.00115, allocations: 197.2 kB / 16.14 MB, free: 6.734 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.195/1.195, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.423/2.423, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.00117, allocations: 61.64 kB / 0.8985 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2424, allocations: 157.4 MB / 1.052 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005835/0.2482, allocations: 4.398 MB / 1.056 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002855/0.2511, allocations: 1.866 MB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.2514, allocations: 11.94 kB / 1.058 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001431/0.2529, allocations: 0.5567 MB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005216/0.2534, allocations: 246.9 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005472/0.2539, allocations: 234 kB / 1.059 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007147/0.2547, allocations: 0.8335 MB / 1.06 GB, free: 80 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004507/0.2551, allocations: 311.2 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.2553, allocations: 211.2 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004056/0.2558, allocations: 286.9 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.2558, allocations: 24 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004999/0.2563, allocations: 311.4 kB / 1.061 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.2565, allocations: 143.5 kB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.2566, allocations: 203 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005284/0.2572, allocations: 0.6151 MB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2572, allocations: 0 / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2572, allocations: 0 / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.2572, allocations: 3.938 kB / 1.062 GB, free: 14 MB / 0.8262 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.001063/0.2583, allocations: 0.7252 MB / 1.063 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2583, allocations: 11.97 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.434e-05/0.2584, allocations: 70.72 kB / 1.063 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009251/0.2593, allocations: 152.2 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.2597, allocations: 330.6 kB / 1.063 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.2597, allocations: 25.36 kB / 1.063 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.48e-05/0.2598, allocations: 32.38 kB / 1.063 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006859/0.2605, allocations: 0.5354 MB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2605, allocations: 4 kB / 1.064 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.2605, allocations: 15.98 kB / 1.064 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.858e-05/0.2606, allocations: 32.64 kB / 1.064 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005326/0.2611, allocations: 386.3 kB / 1.064 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.2633, allocations: 2.403 MB / 1.067 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.2638, allocations: 262.5 kB / 1.067 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.2639, allocations: 112.8 kB / 1.067 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.264, allocations: 4 kB / 1.067 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.264, allocations: 34.5 kB / 1.067 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.283e-06/0.264, allocations: 0 / 1.067 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.001905/0.2659, allocations: 1.129 MB / 1.068 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.2659, allocations: 51.41 kB / 1.068 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.2662, allocations: 304.4 kB / 1.069 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.2662, allocations: 33.7 kB / 1.069 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.2663, allocations: 227.6 kB / 1.069 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.33e-05/0.2664, allocations: 82.84 kB / 1.069 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.033e-05/0.2665, allocations: 65.94 kB / 1.069 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.543e-05/0.2666, allocations: 334.8 kB / 1.069 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.2668, allocations: 104.6 kB / 1.069 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.267, allocations: 199.7 kB / 1.07 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.2673, allocations: 316.2 kB / 1.07 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2673, allocations: 4 kB / 1.07 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006745/0.268, allocations: 437.8 kB / 1.07 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.268, allocations: 8 kB / 1.07 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2681, allocations: 3.984 kB / 1.07 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003288/0.2684, allocations: 98.66 kB / 1.07 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.2687, allocations: 71.91 kB / 1.07 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.2713, allocations: 4.064 MB / 1.074 GB, free: 388 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.2716, allocations: 12.03 kB / 1.074 GB, free: 376 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.2716, allocations: 12 kB / 1.074 GB, free: 364 kB / 0.8262 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.0001532/0.2717, allocations: 181.7 kB / 1.075 GB, free: 172 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.2718, allocations: 31.62 kB / 1.075 GB, free: 140 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.659e-05/0.2719, allocations: 42.31 kB / 1.075 GB, free: 100 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.2719, allocations: 8.094 kB / 1.075 GB, free: 92 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2719, allocations: 0 / 1.075 GB, free: 92 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2719, allocations: 0 / 1.075 GB, free: 92 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003992/0.2723, allocations: 409.3 kB / 1.075 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2723, allocations: 4 kB / 1.075 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.2725, allocations: 35.97 kB / 1.075 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002837/0.2728, allocations: 90.5 kB / 1.075 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.2728, allocations: 11.94 kB / 1.075 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/0.2754, allocations: 4.068 MB / 1.079 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2754, allocations: 0 / 1.079 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007184/0.2761, allocations: 0.5553 MB / 1.08 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.2762, allocations: 124.8 kB / 1.08 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.2763, allocations: 4 kB / 1.08 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.2765, allocations: 20.06 kB / 1.08 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.2765, allocations: 15.97 kB / 1.08 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.2765, allocations: 8 kB / 1.08 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001781/0.2767, allocations: 211.1 kB / 1.08 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2767, allocations: 0 / 1.08 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003892/0.2771, allocations: 96 kB / 1.08 GB, free: 9.961 MB / 0.8419 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.0009645/0.2781, allocations: 1.103 MB / 1.081 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007262/0.2788, allocations: 0.6052 MB / 1.082 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2788, allocations: 0 / 1.082 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004299/0.2793, allocations: 472.7 kB / 1.082 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.2797, allocations: 69.48 kB / 1.082 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003695/0.2835, allocations: 3.542 MB / 1.086 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.2838, allocations: 0.8386 MB / 1.087 GB, free: 3.047 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000189/0.284, allocations: 58.94 kB / 1.087 GB, free: 2.984 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.2841, allocations: 107.4 kB / 1.087 GB, free: 2.879 MB / 0.8419 GB Notification: Performance of SimCode: time 3e-07/0.2841, allocations: 0 / 1.087 GB, free: 2.879 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5237/0.8078, allocations: 7.362 MB / 1.094 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.8081, allocations: 226.3 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.675, allocations: 3.938 kB / 1.094 GB, free: 11.41 MB / 0.8575 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