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: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001959/0.001959, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.549/1.549, allocations: 222.9 MB / 239.9 MB, free: 4.551 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.413/2.413, allocations: 390.2 MB / 0.6643 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 67.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7975/0.7989, allocations: 140.3 MB / 0.9491 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005932/0.8049, allocations: 4.389 MB / 0.9534 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003397/0.8084, allocations: 1.84 MB / 0.9552 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004593/0.8089, allocations: 11.25 kB / 0.9552 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.8105, allocations: 0.5566 MB / 0.9557 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005929/0.8111, allocations: 248.7 kB / 0.956 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.8117, allocations: 228.7 kB / 0.9562 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000558/0.8123, allocations: 0.6125 MB / 0.9568 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006718/0.8129, allocations: 0.5087 MB / 0.9573 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002602/0.8132, allocations: 246.2 kB / 0.9575 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.8136, allocations: 279.8 kB / 0.9578 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.627e-05/0.8137, allocations: 36.91 kB / 0.9578 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004743/0.8142, allocations: 259.9 kB / 0.9581 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.8144, allocations: 152.9 kB / 0.9582 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.8146, allocations: 219.5 kB / 0.9584 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007326/0.8153, allocations: 0.6252 MB / 0.959 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.8153, allocations: 0 / 0.959 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.403e-06/0.8153, allocations: 0 / 0.959 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.8154, allocations: 0 / 0.959 GB, free: 1.758 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.001273/0.8166, allocations: 0.7312 MB / 0.9597 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.8167, allocations: 8.938 kB / 0.9598 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009977/0.8177, allocations: 142.3 kB / 0.9599 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.8182, allocations: 321.3 kB / 0.9602 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.239e-05/0.8183, allocations: 31.56 kB / 0.9602 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.729e-05/0.8184, allocations: 37.52 kB / 0.9603 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008699/0.8192, allocations: 0.5356 MB / 0.9608 GB, free: 392 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.8193, allocations: 1.062 kB / 0.9608 GB, free: 392 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.707e-05/0.8193, allocations: 16.59 kB / 0.9608 GB, free: 380 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.592e-05/0.8194, allocations: 31.73 kB / 0.9608 GB, free: 372 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005843/0.82, allocations: 386.3 kB / 0.9612 GB, free: 184 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.8228, allocations: 2.411 MB / 0.9636 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.8234, allocations: 257 kB / 0.9638 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.8236, allocations: 119.1 kB / 0.9639 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.8236, allocations: 1.344 kB / 0.9639 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.8237, allocations: 37.34 kB / 0.9639 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 2.365e-06/0.8237, allocations: 0 / 0.9639 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002339/0.826, allocations: 1.123 MB / 0.965 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.8261, allocations: 53.5 kB / 0.9651 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.8264, allocations: 303.8 kB / 0.9654 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.8264, allocations: 31.58 kB / 0.9654 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.8266, allocations: 232.8 kB / 0.9656 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.7e-05/0.8267, allocations: 85.84 kB / 0.9657 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.8268, allocations: 65.39 kB / 0.9658 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.8269, allocations: 338.7 kB / 0.9661 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.8271, allocations: 100.7 kB / 0.9662 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.8274, allocations: 192.4 kB / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004244/0.8278, allocations: 320.4 kB / 0.9667 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.8278, allocations: 1.062 kB / 0.9667 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008379/0.8286, allocations: 444.2 kB / 0.9671 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.8287, allocations: 5.281 kB / 0.9671 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.8287, allocations: 3.719 kB / 0.9671 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004104/0.8291, allocations: 99.34 kB / 0.9672 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.8294, allocations: 64.31 kB / 0.9673 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003527/0.833, allocations: 4.397 MB / 0.9716 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.8333, allocations: 17.06 kB / 0.9716 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.8333, allocations: 9.656 kB / 0.9716 GB, free: 6.578 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.0002575/0.8336, allocations: 179.3 kB / 0.9718 GB, free: 6.422 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.996e-05/0.8336, allocations: 34.44 kB / 0.9718 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.143e-05/0.8337, allocations: 41.75 kB / 0.9718 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.8337, allocations: 3.406 kB / 0.9718 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.8338, allocations: 5.297 kB / 0.9718 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.8338, allocations: 0 / 0.9718 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005547/0.8343, allocations: 398.2 kB / 0.9722 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.8343, allocations: 4 kB / 0.9722 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.8345, allocations: 39.05 kB / 0.9723 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003268/0.8349, allocations: 90.97 kB / 0.9724 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.8349, allocations: 5.344 kB / 0.9724 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00315/0.8381, allocations: 4.386 MB / 0.9766 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8381, allocations: 3.938 kB / 0.9766 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009147/0.839, allocations: 0.5629 MB / 0.9772 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.8392, allocations: 120.8 kB / 0.9773 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.229e-05/0.8393, allocations: 8.984 kB / 0.9773 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.8395, allocations: 10.69 kB / 0.9773 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.912e-05/0.8395, allocations: 20.41 kB / 0.9774 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.8396, allocations: 8 kB / 0.9774 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000241/0.8398, allocations: 210 kB / 0.9776 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8398, allocations: 4.062 kB / 0.9776 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005551/0.8404, allocations: 99.38 kB / 0.9777 GB, free: 0.793 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.0001506/0.8405, allocations: 108.9 kB / 0.9778 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009895/0.8415, allocations: 0.6244 MB / 0.9784 GB, free: 216 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.8416, allocations: 0 / 0.9784 GB, free: 216 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005407/0.8421, allocations: 475.2 kB / 0.9788 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.8427, allocations: 81.83 kB / 0.9789 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.8442, allocations: 0.8555 MB / 0.9797 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/0.8447, allocations: 0.8346 MB / 0.9806 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.000251/0.8449, allocations: 63.25 kB / 0.9806 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.559e-05/0.845, allocations: 22.72 kB / 0.9806 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.845, allocations: 4 kB / 0.9806 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of Templates: time 0.01112/0.8561, allocations: 4.457 MB / 0.985 GB, free: 11.64 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (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 & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/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