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.001589/0.00159, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.002161/0.002161, allocations: 201.3 kB / 16.14 MB, free: 6.594 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.426/1.426, allocations: 222.9 MB / 239.8 MB, free: 4.559 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.534/2.534, allocations: 390.2 MB / 0.6642 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001207, allocations: 63.91 kB / 0.8119 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7721/0.7733, allocations: 140.3 MB / 0.9489 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.00726/0.7806, allocations: 4.393 MB / 0.9532 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003318/0.784, allocations: 1.854 MB / 0.955 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003048/0.7843, allocations: 10.12 kB / 0.955 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.7858, allocations: 0.5651 MB / 0.9556 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006555/0.7865, allocations: 247.2 kB / 0.9558 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007071/0.7872, allocations: 236.2 kB / 0.956 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008274/0.788, allocations: 0.8368 MB / 0.9568 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004666/0.7885, allocations: 314.9 kB / 0.9572 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.7888, allocations: 216.1 kB / 0.9574 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004285/0.7892, allocations: 277 kB / 0.9576 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/0.7893, allocations: 26.12 kB / 0.9576 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005545/0.7899, allocations: 308.4 kB / 0.9579 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.79, allocations: 144.9 kB / 0.9581 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002234/0.7902, allocations: 207.2 kB / 0.9583 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006411/0.7909, allocations: 0.6091 MB / 0.9589 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.7909, allocations: 1.125 kB / 0.9589 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7909, allocations: 4 kB / 0.9589 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.102e-05/0.7909, allocations: 3.938 kB / 0.9589 GB, free: 1.789 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.001246/0.7922, allocations: 0.7201 MB / 0.9596 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.7922, allocations: 12.72 kB / 0.9596 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.7934, allocations: 142.8 kB / 0.9597 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004592/0.7939, allocations: 329.1 kB / 0.96 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.7939, allocations: 26.84 kB / 0.9601 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-05/0.794, allocations: 38.2 kB / 0.9601 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008941/0.7949, allocations: 0.5323 MB / 0.9606 GB, free: 432 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.7949, allocations: 0 / 0.9606 GB, free: 432 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.795, allocations: 20.64 kB / 0.9606 GB, free: 416 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.914e-05/0.7951, allocations: 32.03 kB / 0.9607 GB, free: 408 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006186/0.7957, allocations: 389.9 kB / 0.961 GB, free: 216 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.7983, allocations: 2.403 MB / 0.9634 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005433/0.7989, allocations: 262.2 kB / 0.9636 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.7991, allocations: 110.5 kB / 0.9638 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.7991, allocations: 1.875 kB / 0.9638 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.079e-05/0.7992, allocations: 40.75 kB / 0.9638 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.7992, allocations: 0 / 0.9638 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002384/0.8016, allocations: 1.126 MB / 0.9649 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.8016, allocations: 54.12 kB / 0.9649 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/0.802, allocations: 304.4 kB / 0.9652 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.802, allocations: 30.8 kB / 0.9653 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.8022, allocations: 232.9 kB / 0.9655 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.855e-05/0.8023, allocations: 81.73 kB / 0.9656 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.8024, allocations: 61.97 kB / 0.9656 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.8025, allocations: 338.3 kB / 0.9659 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.8027, allocations: 105 kB / 0.966 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.8029, allocations: 195.5 kB / 0.9662 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004696/0.8034, allocations: 321.9 kB / 0.9665 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.8034, allocations: 5.031 kB / 0.9665 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008136/0.8043, allocations: 439.3 kB / 0.967 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.8043, allocations: 5.625 kB / 0.967 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.8043, allocations: 3.25 kB / 0.967 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003938/0.8047, allocations: 103.2 kB / 0.9671 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003017/0.805, allocations: 64.72 kB / 0.9671 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003219/0.8082, allocations: 4.067 MB / 0.9711 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.8085, allocations: 9.062 kB / 0.9711 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.8086, allocations: 14.34 kB / 0.9711 GB, free: 6.938 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.0002736/0.8089, allocations: 190.5 kB / 0.9713 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.8089, allocations: 26.88 kB / 0.9713 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.9e-05/0.809, allocations: 37.69 kB / 0.9714 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.809, allocations: 6.531 kB / 0.9714 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.809, allocations: 2.5 kB / 0.9714 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.279e-06/0.8091, allocations: 0 / 0.9714 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005448/0.8096, allocations: 404.7 kB / 0.9718 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.8096, allocations: 0.9062 kB / 0.9718 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.8098, allocations: 34.48 kB / 0.9718 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003237/0.8101, allocations: 98.86 kB / 0.9719 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.8102, allocations: 1.281 kB / 0.9719 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003023/0.8132, allocations: 4.069 MB / 0.9759 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8132, allocations: 0 / 0.9759 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008658/0.8141, allocations: 0.5566 MB / 0.9764 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.8142, allocations: 133 kB / 0.9765 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.926e-05/0.8143, allocations: 1.469 kB / 0.9765 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.8145, allocations: 10.88 kB / 0.9765 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.555e-05/0.8146, allocations: 20.19 kB / 0.9766 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.8146, allocations: 4.719 kB / 0.9766 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000248/0.8148, allocations: 213.8 kB / 0.9768 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8149, allocations: 4.062 kB / 0.9768 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005368/0.8154, allocations: 95.31 kB / 0.9769 GB, free: 1.469 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.0001503/0.8156, allocations: 104.2 kB / 0.977 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009601/0.8165, allocations: 0.6063 MB / 0.9776 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.8165, allocations: 0 / 0.9776 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005053/0.817, allocations: 472.3 kB / 0.978 GB, free: 496 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005505/0.8176, allocations: 88.81 kB / 0.9781 GB, free: 444 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.819, allocations: 0.8631 MB / 0.9789 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.8195, allocations: 0.8307 MB / 0.9797 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002399/0.8198, allocations: 57.98 kB / 0.9798 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.193e-05/0.8198, allocations: 27.33 kB / 0.9798 GB, free: 15 MB / 0.7481 GB Notification: Performance of SimCode: time 5.91e-07/0.8198, allocations: 4 kB / 0.9798 GB, free: 15 MB / 0.7481 GB Notification: Performance of Templates: time 0.009754/0.8296, allocations: 4.277 MB / 0.984 GB, free: 12.54 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