Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001943/0.001943, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002502/0.002502, allocations: 161.7 kB / 22.76 MB, free: 1.676 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.512/1.512, allocations: 177.1 MB / 203.1 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.39/3.39, allocations: 429.6 MB / 0.673 GB, free: 3.891 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 0.8776 GB, free: 6.508 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.205e-05/3.409e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.504 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.01296/0.01299, allocations: 5.222 MB / 0.8827 GB, free: 1.285 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.007251/0.02024, allocations: 2.577 MB / 0.8852 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005722/0.02082, allocations: 35.69 kB / 0.8852 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.002194/0.02301, allocations: 0.6755 MB / 0.8859 GB, free: 14 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.02429, allocations: 441.2 kB / 0.8863 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.02544, allocations: 398.8 kB / 0.8867 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.001489/0.02692, allocations: 0.9785 MB / 0.8876 GB, free: 12.19 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007372/0.02766, allocations: 382.5 kB / 0.888 GB, free: 11.82 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.02867, allocations: 0.5182 MB / 0.8885 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007249/0.0294, allocations: 359 kB / 0.8889 GB, free: 10.95 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.02952, allocations: 52 kB / 0.8889 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007141/0.03024, allocations: 335.1 kB / 0.8892 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0003329/0.03057, allocations: 259.2 kB / 0.8895 GB, free: 10.31 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.000401/0.03097, allocations: 247.4 kB / 0.8897 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.03245, allocations: 0.9968 MB / 0.8907 GB, free: 9.07 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.03246, allocations: 0 / 0.8907 GB, free: 9.07 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.032e-06/0.03246, allocations: 0 / 0.8907 GB, free: 9.07 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.693e-05/0.03248, allocations: 3.938 kB / 0.8907 GB, free: 9.066 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.00197/0.03445, allocations: 0.9053 MB / 0.8916 GB, free: 8.125 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.03449, allocations: 12.03 kB / 0.8916 GB, free: 8.113 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001661/0.03616, allocations: 291.9 kB / 0.8919 GB, free: 7.828 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009466/0.0371, allocations: 486.8 kB / 0.8923 GB, free: 7.328 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.03715, allocations: 41.36 kB / 0.8924 GB, free: 7.289 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/0.03733, allocations: 64.52 kB / 0.8924 GB, free: 7.227 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.03888, allocations: 0.975 MB / 0.8934 GB, free: 6.133 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.534e-05/0.03892, allocations: 8.141 kB / 0.8934 GB, free: 6.125 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.985e-05/0.03899, allocations: 28.11 kB / 0.8934 GB, free: 6.098 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002091/0.0392, allocations: 64.95 kB / 0.8935 GB, free: 6.031 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.04027, allocations: 0.5735 MB / 0.894 GB, free: 5.457 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004995/0.04526, allocations: 3.5 MB / 0.8975 GB, free: 1.824 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000545/0.04581, allocations: 271.3 kB / 0.8977 GB, free: 1.551 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003603/0.04617, allocations: 217.3 kB / 0.8979 GB, free: 1.336 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.0462, allocations: 12.16 kB / 0.8979 GB, free: 1.324 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.04625, allocations: 38.84 kB / 0.898 GB, free: 1.277 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 1.744e-06/0.04625, allocations: 0 / 0.898 GB, free: 1.277 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.006509/0.05276, allocations: 2.391 MB / 0.9003 GB, free: 14.83 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.05281, allocations: 55.41 kB / 0.9004 GB, free: 14.77 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005506/0.05336, allocations: 429.7 kB / 0.9008 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.05341, allocations: 33.7 kB / 0.9008 GB, free: 14.3 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003204/0.05373, allocations: 352.4 kB / 0.9011 GB, free: 13.95 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.05388, allocations: 146.8 kB / 0.9013 GB, free: 13.81 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.05408, allocations: 106.2 kB / 0.9014 GB, free: 13.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002143/0.05429, allocations: 362.7 kB / 0.9017 GB, free: 13.34 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/0.05471, allocations: 237.2 kB / 0.902 GB, free: 13.11 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005781/0.05529, allocations: 415.3 kB / 0.9023 GB, free: 12.62 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.05658, allocations: 0.6779 MB / 0.903 GB, free: 11.88 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.83e-06/0.05659, allocations: 4 kB / 0.903 GB, free: 11.87 MB / 0.8698 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001983/0.05857, allocations: 0.9412 MB / 0.9039 GB, free: 10.91 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.0586, allocations: 10.19 kB / 0.9039 GB, free: 10.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.05862, allocations: 4 kB / 0.9039 GB, free: 10.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.05996, allocations: 286.5 kB / 0.9042 GB, free: 10.61 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/0.06045, allocations: 119.8 kB / 0.9043 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006359/0.06681, allocations: 4.989 MB / 0.9092 GB, free: 5.203 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005266/0.06734, allocations: 31.97 kB / 0.9092 GB, free: 5.172 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.492e-05/0.06741, allocations: 27.94 kB / 0.9093 GB, free: 5.145 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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 {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000607/0.06802, allocations: 221.7 kB / 0.9095 GB, free: 4.918 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.06819, allocations: 67.67 kB / 0.9095 GB, free: 4.852 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.06997, allocations: 0.773 MB / 0.9103 GB, free: 4.062 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.06997, allocations: 4 kB / 0.9103 GB, free: 4.059 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.06998, allocations: 4 kB / 0.9103 GB, free: 4.055 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.06999, allocations: 8.172 kB / 0.9103 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.07281, allocations: 1.341 MB / 0.9116 GB, free: 2.637 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.07282, allocations: 3.984 kB / 0.9116 GB, free: 2.633 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.07318, allocations: 67.89 kB / 0.9117 GB, free: 2.566 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.07441, allocations: 274.4 kB / 0.9119 GB, free: 2.289 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.956e-05/0.07446, allocations: 8 kB / 0.912 GB, free: 2.281 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006428/0.08088, allocations: 4.915 MB / 0.9168 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.08089, allocations: 0 / 0.9168 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.08315, allocations: 1.147 MB / 0.9179 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.08345, allocations: 87.62 kB / 0.918 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.08355, allocations: 16.12 kB / 0.918 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/0.08392, allocations: 31.97 kB / 0.918 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.08404, allocations: 39.86 kB / 0.918 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.08408, allocations: 12 kB / 0.9181 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003916/0.08447, allocations: 283.1 kB / 0.9183 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5e-08/0.08447, allocations: 0 / 0.9183 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007969/0.08527, allocations: 172 kB / 0.9185 GB, free: 11.24 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,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.0002184/0.08548, allocations: 115.2 kB / 0.9186 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001973/0.08746, allocations: 0.9803 MB / 0.9196 GB, free: 10.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.08746, allocations: 128 / 0.9196 GB, free: 10.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.08865, allocations: 0.6794 MB / 0.9202 GB, free: 9.379 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009532/0.08961, allocations: 178 kB / 0.9204 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.09204, allocations: 1.22 MB / 0.9216 GB, free: 7.941 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005045/0.09254, allocations: 346 kB / 0.9219 GB, free: 7.578 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000365/0.09291, allocations: 108.8 kB / 0.922 GB, free: 7.469 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.09303, allocations: 40.48 kB / 0.9221 GB, free: 7.43 MB / 0.8855 GB Notification: Performance of SimCode: time 1.593e-06/0.09303, allocations: 0 / 0.9221 GB, free: 7.43 MB / 0.8855 GB Notification: Performance of Templates: time 0.01887/0.1119, allocations: 9.152 MB / 0.931 GB, free: 14.46 MB / 0.9011 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.846716298023239]