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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007642/0.007642, allocations: 102.8 kB / 15.74 MB, free: 6.453 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.0021/0.0021, allocations: 195.4 kB / 16.68 MB, free: 6.355 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.664/2.664, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 63.89 kB / 1.083 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2668, allocations: 162.3 MB / 1.242 GB, free: 9.863 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005374/0.2722, allocations: 4.352 MB / 1.246 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002412/0.2747, allocations: 1.862 MB / 1.248 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.2748, allocations: 8 kB / 1.248 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.2762, allocations: 0.5953 MB / 1.248 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004295/0.2766, allocations: 266.6 kB / 1.249 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.2771, allocations: 247.4 kB / 1.249 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005754/0.2777, allocations: 0.6112 MB / 1.25 GB, free: 1.898 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005897/0.2783, allocations: 470.8 kB / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.2785, allocations: 247.1 kB / 1.25 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003817/0.2789, allocations: 271 kB / 1.251 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.724e-05/0.279, allocations: 36 kB / 1.251 GB, free: 0.8906 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003576/0.2793, allocations: 251.5 kB / 1.251 GB, free: 0.6445 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.2795, allocations: 147.5 kB / 1.251 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.2797, allocations: 223 kB / 1.251 GB, free: 288 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.4696/0.7493, allocations: 0.6032 MB / 1.252 GB, free: 8.625 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.7494, allocations: 0 / 1.252 GB, free: 8.625 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7494, allocations: 0.9375 kB / 1.252 GB, free: 8.625 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.7494, allocations: 0 / 1.252 GB, free: 8.625 MB / 0.9981 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.00104/0.7504, allocations: 0.7343 MB / 1.252 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.7505, allocations: 10.09 kB / 1.252 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.128e-05/0.7505, allocations: 77.91 kB / 1.253 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000861/0.7514, allocations: 151.1 kB / 1.253 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.7518, allocations: 341.1 kB / 1.253 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.7518, allocations: 27.16 kB / 1.253 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.455e-05/0.7518, allocations: 35.75 kB / 1.253 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006612/0.7525, allocations: 0.5316 MB / 1.254 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.7525, allocations: 2 kB / 1.254 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.7526, allocations: 17.94 kB / 1.254 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.397e-05/0.7526, allocations: 32.8 kB / 1.254 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005384/0.7532, allocations: 383.9 kB / 1.254 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.7549, allocations: 2.407 MB / 1.256 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004399/0.7554, allocations: 260.1 kB / 1.257 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.7555, allocations: 114 kB / 1.257 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.7556, allocations: 1.812 kB / 1.257 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.7556, allocations: 42.08 kB / 1.257 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=20): time 1.222e-06/0.7556, allocations: 0 / 1.257 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23): time 0.001789/0.7574, allocations: 1.132 MB / 1.258 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.659e-05/0.7574, allocations: 54.73 kB / 1.258 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.7577, allocations: 303.2 kB / 1.258 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.7577, allocations: 31.11 kB / 1.258 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.363e-05/0.7578, allocations: 238.3 kB / 1.258 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.249e-05/0.7578, allocations: 85.12 kB / 1.259 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.7579, allocations: 69.73 kB / 1.259 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.674e-05/0.758, allocations: 337 kB / 1.259 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.7581, allocations: 102.8 kB / 1.259 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.7583, allocations: 190.7 kB / 1.259 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.7586, allocations: 314.7 kB / 1.26 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.7586, allocations: 4.125 kB / 1.26 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006305/0.7593, allocations: 447.4 kB / 1.26 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.7593, allocations: 6.312 kB / 1.26 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.7593, allocations: 3.219 kB / 1.26 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003002/0.7596, allocations: 97.33 kB / 1.26 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002417/0.7598, allocations: 64.84 kB / 1.26 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.7628, allocations: 4.395 MB / 1.264 GB, free: 16.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.763, allocations: 9.812 kB / 1.264 GB, free: 16.18 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.763, allocations: 14.91 kB / 1.264 GB, free: 16.18 MB / 1.014 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.0001616/0.7631, allocations: 184.4 kB / 1.265 GB, free: 16.03 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.173e-05/0.7632, allocations: 35.25 kB / 1.265 GB, free: 16.01 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.7633, allocations: 38.62 kB / 1.265 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.7633, allocations: 2.375 kB / 1.265 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.7633, allocations: 1.906 kB / 1.265 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.7633, allocations: 3.844 kB / 1.265 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003702/0.7637, allocations: 395.7 kB / 1.265 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.7637, allocations: 0.9375 kB / 1.265 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.7639, allocations: 47.28 kB / 1.265 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.7641, allocations: 96.42 kB / 1.265 GB, free: 15.67 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.7641, allocations: 2.25 kB / 1.265 GB, free: 15.67 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/0.7669, allocations: 4.391 MB / 1.269 GB, free: 11.37 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.7669, allocations: 5.062 kB / 1.269 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006802/0.7676, allocations: 0.5624 MB / 1.27 GB, free: 11.05 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.7677, allocations: 124.2 kB / 1.27 GB, free: 10.93 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/0.7678, allocations: 5.312 kB / 1.27 GB, free: 10.93 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.768, allocations: 17.2 kB / 1.27 GB, free: 10.92 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.768, allocations: 14.34 kB / 1.27 GB, free: 10.92 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.768, allocations: 8.781 kB / 1.27 GB, free: 10.92 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001874/0.7682, allocations: 209.2 kB / 1.27 GB, free: 10.8 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7682, allocations: 0.7812 kB / 1.27 GB, free: 10.8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003933/0.7686, allocations: 102.6 kB / 1.27 GB, free: 10.79 MB / 1.014 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.0009747/0.7696, allocations: 1.099 MB / 1.272 GB, free: 9.949 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0006367/0.7702, allocations: 0.6057 MB / 1.272 GB, free: 9.531 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.7703, allocations: 0.6875 kB / 1.272 GB, free: 9.531 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003885/0.7707, allocations: 478.5 kB / 1.273 GB, free: 9.145 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.7711, allocations: 81.5 kB / 1.273 GB, free: 9.125 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.7743, allocations: 3.375 MB / 1.276 GB, free: 6.957 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.7747, allocations: 0.8373 MB / 1.277 GB, free: 6.238 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001595/0.7749, allocations: 60.48 kB / 1.277 GB, free: 6.227 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.775, allocations: 112.1 kB / 1.277 GB, free: 6.145 MB / 1.014 GB Notification: Performance of SimCode: time 2e-07/0.775, allocations: 0 / 1.277 GB, free: 6.145 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.064/2.839, allocations: 7.789 MB / 1.285 GB, free: 5.336 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.46/19.3, allocations: 7.797 kB / 1.285 GB, free: 5.332 MB / 1.014 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=400 --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