Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_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.001532/0.001532, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 196.8 kB / 16.53 MB, free: 6.699 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.299/2.299, allocations: 390.3 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001282, allocations: 63.91 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5814/0.5827, allocations: 140.4 MB / 0.9497 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005296/0.588, allocations: 4.361 MB / 0.954 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002642/0.5907, allocations: 1.856 MB / 0.9558 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003468/0.5911, allocations: 12.31 kB / 0.9558 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.5926, allocations: 0.5919 MB / 0.9564 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000605/0.5932, allocations: 257 kB / 0.9566 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005777/0.5938, allocations: 252.2 kB / 0.9569 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.5944, allocations: 0.6151 MB / 0.9575 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005914/0.5949, allocations: 483.9 kB / 0.9579 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.5952, allocations: 247.9 kB / 0.9582 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.5956, allocations: 258.1 kB / 0.9584 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.864e-05/0.5957, allocations: 35.97 kB / 0.9584 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004537/0.5962, allocations: 261.2 kB / 0.9587 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.5963, allocations: 144.8 kB / 0.9588 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.5965, allocations: 228.1 kB / 0.959 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000603/0.5971, allocations: 0.5968 MB / 0.9596 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.5971, allocations: 1.125 kB / 0.9596 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5971, allocations: 4 kB / 0.9596 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.956e-06/0.5971, allocations: 0 / 0.9596 GB, free: 1.723 MB / 0.7169 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.001088/0.5982, allocations: 0.7187 MB / 0.9603 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.5983, allocations: 9.625 kB / 0.9603 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.441e-05/0.5984, allocations: 81.69 kB / 0.9604 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009512/0.5993, allocations: 141 kB / 0.9606 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.5997, allocations: 326.4 kB / 0.9609 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.5997, allocations: 34.72 kB / 0.9609 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.012e-05/0.5998, allocations: 29.66 kB / 0.9609 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006816/0.6005, allocations: 0.5367 MB / 0.9615 GB, free: 288 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.6005, allocations: 3.938 kB / 0.9615 GB, free: 284 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.6005, allocations: 16.22 kB / 0.9615 GB, free: 272 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.992e-05/0.6006, allocations: 28.08 kB / 0.9615 GB, free: 268 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005361/0.6011, allocations: 391.3 kB / 0.9619 GB, free: 76 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00264/0.6038, allocations: 2.41 MB / 0.9642 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.6043, allocations: 260.3 kB / 0.9645 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.6045, allocations: 111.5 kB / 0.9646 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.6045, allocations: 2.156 kB / 0.9646 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.6046, allocations: 40.88 kB / 0.9646 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 3.026e-06/0.6046, allocations: 0 / 0.9646 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.00221/0.6068, allocations: 1.122 MB / 0.9657 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.6068, allocations: 53.59 kB / 0.9658 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.6072, allocations: 304.5 kB / 0.9661 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.6072, allocations: 30.83 kB / 0.9661 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.6074, allocations: 229.5 kB / 0.9663 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.366e-05/0.6074, allocations: 81.53 kB / 0.9664 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.6075, allocations: 69.73 kB / 0.9665 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6077, allocations: 337.4 kB / 0.9668 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.6079, allocations: 105.6 kB / 0.9669 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.6081, allocations: 188.2 kB / 0.9671 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004189/0.6085, allocations: 323.2 kB / 0.9674 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.6085, allocations: 1.094 kB / 0.9674 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007537/0.6093, allocations: 439.7 kB / 0.9678 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.6093, allocations: 5.438 kB / 0.9678 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.6093, allocations: 7.281 kB / 0.9678 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003661/0.6097, allocations: 99.09 kB / 0.9679 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.61, allocations: 64.97 kB / 0.968 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003408/0.6134, allocations: 4.393 MB / 0.9722 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.6137, allocations: 11.94 kB / 0.9723 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.6137, allocations: 14.19 kB / 0.9723 GB, free: 6.48 MB / 0.7325 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.0002051/0.6139, allocations: 176.7 kB / 0.9724 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.614, allocations: 34.81 kB / 0.9725 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.656e-05/0.6141, allocations: 42.06 kB / 0.9725 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.6141, allocations: 3 kB / 0.9725 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.6141, allocations: 9.047 kB / 0.9725 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.6141, allocations: 0 / 0.9725 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.6146, allocations: 397.8 kB / 0.9729 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.6146, allocations: 3.938 kB / 0.9729 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001916/0.6148, allocations: 38.86 kB / 0.9729 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002945/0.6151, allocations: 91.19 kB / 0.973 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.6151, allocations: 5.375 kB / 0.973 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003111/0.6182, allocations: 4.391 MB / 0.9773 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6182, allocations: 8.094 kB / 0.9773 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008078/0.6191, allocations: 0.5533 MB / 0.9779 GB, free: 1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.6192, allocations: 124.4 kB / 0.978 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.324e-05/0.6193, allocations: 10.17 kB / 0.978 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.6195, allocations: 13.5 kB / 0.978 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/0.6195, allocations: 20.25 kB / 0.978 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.6196, allocations: 5.375 kB / 0.978 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002302/0.6198, allocations: 209.6 kB / 0.9782 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.91e-07/0.6198, allocations: 0 / 0.9782 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004885/0.6203, allocations: 99.16 kB / 0.9783 GB, free: 0.6953 MB / 0.7325 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.001082/0.6214, allocations: 1.096 MB / 0.9794 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009014/0.6223, allocations: 0.6316 MB / 0.98 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6223, allocations: 1.031 kB / 0.98 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.6228, allocations: 476 kB / 0.9805 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.6233, allocations: 78.61 kB / 0.9805 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004249/0.6276, allocations: 3.388 MB / 0.9839 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.628, allocations: 0.8313 MB / 0.9847 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002158/0.6283, allocations: 57.56 kB / 0.9847 GB, free: 11.54 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.6284, allocations: 108.3 kB / 0.9848 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.6284, allocations: 0 / 0.9848 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.6596, allocations: 7.65 MB / 0.9923 GB, free: 4.488 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.183/9.843, allocations: 7.734 kB / 0.9923 GB, free: 4.484 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches