Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001533/0.001533, 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.002653/0.002652, allocations: 193.5 kB / 16.25 MB, free: 6.621 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.423/1.423, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.76/2.76, allocations: 437 MB / 0.71 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 67.88 kB / 0.8687 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7323/0.7337, allocations: 151.6 MB / 1.017 GB, free: 2.906 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006636/0.7404, allocations: 4.385 MB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003708/0.7441, allocations: 1.854 MB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.7446, allocations: 8 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.7464, allocations: 0.5684 MB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006853/0.7471, allocations: 242.8 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007178/0.7478, allocations: 227.2 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007587/0.7486, allocations: 0.6112 MB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007935/0.7494, allocations: 0.5165 MB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003017/0.7497, allocations: 247.2 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004411/0.7501, allocations: 275 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.284e-05/0.7502, allocations: 36 kB / 1.026 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004752/0.7507, allocations: 263.4 kB / 1.026 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.7508, allocations: 147.6 kB / 1.026 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002125/0.7511, allocations: 219 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000683/0.7517, allocations: 0.6152 MB / 1.027 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.7518, allocations: 8 kB / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.174e-06/0.7518, allocations: 0 / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.7518, allocations: 0 / 1.027 GB, free: 8.691 MB / 0.7794 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.001239/0.753, allocations: 0.7213 MB / 1.027 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.7531, allocations: 8.031 kB / 1.027 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009496/0.754, allocations: 144.3 kB / 1.028 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.7545, allocations: 338.4 kB / 1.028 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.7545, allocations: 25.31 kB / 1.028 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.7546, allocations: 32.38 kB / 1.028 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008126/0.7554, allocations: 0.5396 MB / 1.028 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.7554, allocations: 0 / 1.028 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.49e-05/0.7555, allocations: 15.98 kB / 1.028 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.298e-05/0.7555, allocations: 32.64 kB / 1.029 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005731/0.7561, allocations: 390.2 kB / 1.029 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.7587, allocations: 2.399 MB / 1.031 GB, free: 3.715 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.7593, allocations: 266.5 kB / 1.031 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.7594, allocations: 108.8 kB / 1.032 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.7595, allocations: 4 kB / 1.032 GB, free: 3.332 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.7595, allocations: 34.56 kB / 1.032 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 2.014e-06/0.7595, allocations: 4 kB / 1.032 GB, free: 3.285 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002286/0.7618, allocations: 1.121 MB / 1.033 GB, free: 2.066 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.7619, allocations: 51.41 kB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.7622, allocations: 308.3 kB / 1.033 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.7622, allocations: 33.7 kB / 1.033 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.7624, allocations: 227.6 kB / 1.033 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.462e-05/0.7624, allocations: 90.77 kB / 1.033 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.7626, allocations: 65.94 kB / 1.033 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.7627, allocations: 338.8 kB / 1.034 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.7629, allocations: 104.6 kB / 1.034 GB, free: 0.8242 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.7631, allocations: 191.7 kB / 1.034 GB, free: 0.5977 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.7635, allocations: 309.3 kB / 1.034 GB, free: 268 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.7635, allocations: 4 kB / 1.034 GB, free: 264 kB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007547/0.7642, allocations: 450.4 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.7643, allocations: 9.562 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.7643, allocations: 0 / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003842/0.7647, allocations: 94.84 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.765, allocations: 67.91 kB / 1.035 GB, free: 15.63 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003342/0.7683, allocations: 4.399 MB / 1.039 GB, free: 10.81 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.7686, allocations: 8 kB / 1.039 GB, free: 10.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.343e-05/0.7686, allocations: 16 kB / 1.039 GB, free: 10.79 MB / 0.795 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.0002619/0.7689, allocations: 177.8 kB / 1.039 GB, free: 10.6 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.769, allocations: 39.55 kB / 1.039 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.529e-05/0.769, allocations: 34.33 kB / 1.04 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.7691, allocations: 7.984 kB / 1.04 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.7691, allocations: 0 / 1.04 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.7691, allocations: 0 / 1.04 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004592/0.7695, allocations: 397.5 kB / 1.04 GB, free: 10.08 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.7695, allocations: 0 / 1.04 GB, free: 10.08 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.7697, allocations: 39.91 kB / 1.04 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003142/0.7701, allocations: 98.44 kB / 1.04 GB, free: 9.938 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.7701, allocations: 3.984 kB / 1.04 GB, free: 9.934 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003056/0.7732, allocations: 4.38 MB / 1.044 GB, free: 5.129 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7732, allocations: 0 / 1.044 GB, free: 5.129 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008217/0.774, allocations: 0.5661 MB / 1.045 GB, free: 4.539 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.7741, allocations: 124.7 kB / 1.045 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.211e-05/0.7742, allocations: 8 kB / 1.045 GB, free: 4.391 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.7744, allocations: 4 kB / 1.045 GB, free: 4.387 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.7745, allocations: 19.97 kB / 1.045 GB, free: 4.367 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.7745, allocations: 8 kB / 1.045 GB, free: 4.359 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002126/0.7747, allocations: 207.1 kB / 1.045 GB, free: 4.16 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7747, allocations: 4.062 kB / 1.045 GB, free: 4.156 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000507/0.7752, allocations: 99.94 kB / 1.045 GB, free: 4.059 MB / 0.795 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.0001424/0.7754, allocations: 115.1 kB / 1.045 GB, free: 3.938 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008987/0.7763, allocations: 0.6269 MB / 1.046 GB, free: 3.273 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7763, allocations: 0 / 1.046 GB, free: 3.273 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004853/0.7768, allocations: 472.2 kB / 1.047 GB, free: 2.773 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.7773, allocations: 85.77 kB / 1.047 GB, free: 2.695 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.7786, allocations: 0.8613 MB / 1.047 GB, free: 1.812 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.779, allocations: 0.8389 MB / 1.048 GB, free: 0.9453 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000216/0.7792, allocations: 58.92 kB / 1.048 GB, free: 0.8828 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.7793, allocations: 23.44 kB / 1.048 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.7793, allocations: 4 kB / 1.048 GB, free: 0.8555 MB / 0.795 GB Notification: Performance of Templates: time 0.00903/0.7883, allocations: 4.449 MB / 1.053 GB, free: 12.45 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches